code: def isreal(x, **kwargs):
      """
      Returns a bool tensor, 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 tensor.
  
      Returns
      -------
      out : Tensor, bool
          Boolean tensor of same shape as `x`.
  
      See Also
      --------
      iscomplex
      isrealobj : Return True if x is not a complex type.
  
      Examples
      --------
      >>> import mars.tensor as mt
  
      >>> mt.isreal([1+1j, 1+0j, 4.5, 3, 2, 2j]).execute()
      array([False,  True,  True,  True,  True, False])
  
      """
      op = TensorIsReal(**kwargs)
      return op(x)
  
file_path: mars/mars/tensor/arithmetic/isreal.py
imports: import numpy
  from ...None import opcodes
  from ..utils import inject_dtype
  from .core import TensorUnaryOp
  from .utils import arithmetic_operand
label_desc: Use image node_id 1 for calling a global function with example usage: isreal(x) and returns: op