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.
  
      Args:
          x (cupy.ndarray): Input array.
  
      Returns:
          bool: The return value, True if ``x`` is of a complex type or
          has at least one complex element.
  
      .. seealso::
          :func:`isrealobj`, :func:`iscomplex`
  
      Examples
      --------
      >>> cupy.iscomplexobj(cupy.array([3, 1+0j, True]))
      True
      >>> cupy.iscomplexobj(cupy.array([3, 1, True]))
      False
  
      """
      if not isinstance(x, cupy.ndarray):
          return numpy.iscomplexobj(x)
      return x.dtype.kind == "c"
  
imports: import numpy
  import cupy
label_desc: Use image node_id 2 for calling a global function with example usage: iscomplexobj(x) and returns: unknown, numpy