code: def iscomplexobj(x):
      """
      Check for a complex type or an array of complex numbers.
  
      The type of the input is checked, not the value. Even if the input
      has an imaginary part equal to zero, `iscomplexobj` evaluates to True.
  
      Parameters
      ----------
      x : any
          The input can be of any type and shape.
  
      Returns
      -------
      iscomplexobj : bool
          The return value, True if `x` is of a complex type or has at least
          one complex element.
  
      See Also
      --------
      isrealobj, iscomplex
  
      Examples
      --------
      >>> np.iscomplexobj(1)
      False
      >>> np.iscomplexobj(1+0j)
      True
      >>> np.iscomplexobj([3, 1+0j, True])
      True
  
      """
      try:
          dtype = x.dtype
          type_ = dtype.type
      except AttributeError:
          type_ = asarray(x).dtype.type
      return issubclass(type_, _nx.complexfloating)
  
imports: import functools
  from .._utils import set_module
  import numpy.core.numeric
  from numpy.core.numeric import asarray, asanyarray, isnan, zeros
  from numpy.core import overrides, getlimits
  from .ufunclike import isneginf, isposinf
label_desc: Use image node_id 11 for calling a global function with example usage: iscomplexobj(x) and returns: issubclass