code: def imag(val):
      return ivy.imag(val)
  
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 3 for calling a global function with example usage: imag(val) and returns: ivy