code: def swapaxes(a, axis1, axis2):
      return ivy.swapaxes(a, axis1, axis2)
  
imports: import ivy
  from ivy.functional.frontends.numpy.func_wrapper import to_ivy_arrays_and_back
label_desc: Use image node_id 2 for calling a global function with example usage: swapaxes(a, axis1, axis2) and returns: ivy