code: def isreal(x):
      """
      Returns a bool array, where True if input element is real.
  
      If element has complex type with zero complex part, the return value
      for that element is True.
  
      Parameters
      ----------
      x : array_like
          Input array.
  
      Returns
      -------
      out : ndarray, bool
          Boolean array of same shape as `x`.
  
      See Also
      --------
      iscomplex
      isrealobj : Return True if x is not a complex type.
  
      Examples
      --------
      >>> np.isreal([1+1j, 1+0j, 4.5, 3, 2, 2j])
      array([False,  True,  True,  True,  True, False])
  
      """
      return imag(x) == 0
  
imports: from __future__ import division, absolute_import, print_function
  import functools
  import warnings
  import numpy.core.numeric
  from numpy.core.numeric import asarray, asanyarray, isnan, zeros
  from numpy.core.overrides import set_module
  from numpy.core import overrides
  from .ufunclike import isneginf, isposinf
label_desc: Use image node_id 10 for calling a global function with example usage: isreal(x) and returns: unknown