code: def t(input):
      if input.ndim > 2:
          raise ivy.utils.exceptions.IvyException(
              f"t(input) expects a tensor with <= 2 dimensions, but self is {input.ndim}D"
          )
      if input.ndim == 2:
          return ivy.swapaxes(input, 0, 1)
      else:
          return input
  
imports: import ivy
  from ivy.func_wrapper import with_unsupported_dtypes
  from ivy.functional.frontends.torch.func_wrapper import to_ivy_arrays_and_back, numpy_to_torch_style_args, to_ivy_shape
  import ivy.functional.frontends.torch
label_desc: Use image node_id 32 for calling a global function with example usage: t(input) and returns: ivy, input