code: def diagonal(a, offset, axis1, axis2):
      return ivy.diagonal(a, offset=offset, axis1=axis1, axis2=axis2)
  
file_path: ivy/ivy/functional/frontends/numpy/indexing_routines/indexing_like_operations.py
imports: import ivy
  from ivy.functional.frontends.numpy.func_wrapper import to_ivy_arrays_and_back, inputs_to_ivy_arrays, handle_numpy_out
label_desc: Use image node_id 3 for calling a global function with example usage: diagonal(a, offset, axis1, axis2) and returns: ivy