code: def angle(z, deg=False, **kwargs):
      """
      Return the angle of the complex argument.
  
      Parameters
      ----------
      z : array_like
          A complex number or sequence of complex numbers.
      deg : bool, optional
          Return angle in degrees if True, radians if False (default).
  
      Returns
      -------
      angle : Tensor or scalar
          The counterclockwise angle from the positive real axis on
          the complex plane, with dtype as numpy.float64.
  
      See Also
      --------
      arctan2
      absolute
  
      Examples
      --------
      >>> import mars.tensor as mt
  
      >>> mt.angle([1.0, 1.0j, 1+1j]).execute()               # in radians
      array([ 0.        ,  1.57079633,  0.78539816])
      >>> mt.angle(1+1j, deg=True).execute()                  # in degrees
      45.0
  
      """
      op = TensorAngle(deg=deg, **kwargs)
      return op(z)
  
file_path: mars/mars/tensor/arithmetic/angle.py
imports: import numpy
  from ...None import opcodes
  from ...serialization.serializables import BoolField
  from ..array_utils import device, as_same_device
  from ..utils import infer_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: angle(z, deg) and returns: op