code: def imag(x):
      out = _np.imag(x)
      if is_array(x):
          return out
  
      return get_default_dtype().type(out)
  
imports: from ._dispatch import BACKEND_NAME, _common
  from ._dispatch import numpy
label_desc: Use image node_id 2 for calling a global function with example usage: imag(x) and returns: get_default_dtype, out