code: def angle(z, deg=False):
      angle = ivy.angle(z, deg=deg)
      if deg and len(z.shape) == 0:
          angle = ivy.astype(angle, ivy.float64)
      return angle
  
imports: import ivy
  from ivy.functional.frontends.numpy.func_wrapper import to_ivy_arrays_and_back, handle_numpy_out, handle_numpy_dtype, handle_numpy_casting, from_zero_dim_arrays_to_scalar
label_desc: Use image node_id 2 for calling a global function with example usage: angle(z, deg) and returns: angle