<human>:  check if number is complex.
<bot>: Here is a Python function to check if the number is complex

import numpy as np

def is_complex(number):
  """
  Check if number is complex
  """
  try:
    if (number.imag!= 0):
      return True
    else:
      return False
  except Exception as e:
    self.err(e, "Can not check if number is complex")
    return

# Enter the number
number = 10

# Calling the function
print((is_complex(number)))

#Example Output
# False

#Remember to inspect code for bugs.