code: def trace(a, offset=0, axis1=0, axis2=1, out=None):
      ret = ivy.trace(
          a, offset=offset, axis1=axis1, axis2=axis2, out=out
      )
      return ret
  
file_path: ivy/ivy/functional/frontends/numpy/linalg/norms_and_other_numbers.py
imports: import ivy
  from ivy.functional.frontends.numpy.func_wrapper import to_ivy_arrays_and_back, from_zero_dim_arrays_to_scalar
  from ivy.func_wrapper import with_unsupported_dtypes
label_desc: Use image node_id 5 for calling a global function with example usage: trace(a, offset, axis1, axis2, out) and returns: ret