code: def swapaxes(
      x: Union[ivy.Array, ivy.NativeArray],
      axis0: int,
      axis1: int,
      /,
      *,
      copy: Optional[bool] = None,
      out: Optional[ivy.Array] = None,
  ) -> ivy.Array:
      """Interchange two axes of an array.
  
      Parameters
      ----------
      x
          Input array.
      axis0
          First axis to be swapped.
      axis1
          Second axis to be swapped.
      copy
          boolean indicating whether or not to copy the input array.
          If True, the function must always copy.
          If False, the function must never copy.
          In case copy is False we avoid copying by returning a view of the input array.
      out
          optional output array, for writing the result to. It must have a shape that the
          inputs broadcast to.
  
      Returns
      -------
      ret
          x with its axes permuted.
  
  
      Both the description and the type hints above assumes an array input for simplicity,
      but this function is *nestable*, and therefore also accepts :class:`ivy.Container`
      instances in place of any of the arguments.
  
      Examples
      --------
      With :class:`ivy.Array` input:
  
      >>> x = ivy.array([[0, 1, 2]])
      >>> y = ivy.swapaxes(x, 0, 1)
      >>> print(y)
      ivy.array([[0],
                 [1],
                 [2]])
  
      >>> x = ivy.array([[[0,1],[2,3]],[[4,5],[6,7]]])
      >>> y = ivy.swapaxes(x, 0, 1)
      >>> print(y)
      ivy.array([[[0, 1],
                  [4, 5]],
                 [[2, 3],
                  [6, 7]]])
  
      >>> x = ivy.array([[[0,1],[2,3]],[[4,5],[6,7]]])
      >>> y = ivy.swapaxes(x, 0, 2)
      >>> print(y)
      ivy.array([[[0, 4],
                  [2, 6]],
                 [[1, 5],
                  [3, 7]]])
  
      >>> x = ivy.array([[[0,1],[2,3]],[[4,5],[6,7]]])
      >>> y = ivy.swapaxes(x, 1, 2)
      >>> print(y)
      ivy.array([[[0, 2],
                  [1, 3]],
                 [[4, 6],
                  [5, 7]]])
  
  
      >>> x = ivy.array([[0, 1, 2]])
      >>> y = ivy.swapaxes(x, 0, 1)
      >>> print(y)
      ivy.array([[0],
                 [1],
                 [2]])
  
      With :class:`ivy.Container` input:
  
      >>> x = ivy.Container(a=ivy.array([[0., 1., 2.]]), b=ivy.array([[3., 4., 5.]]))
      >>> y = ivy.swapaxes(x, 0, 1)
      >>> print(y)
      {
          a: ivy.array([[0.],
                        [1.],
                        [2.]]),
          b: ivy.array([[3.],
                        [4.],
                        [5.]])
      }
  
      # Both the description and the type hints above assumes an array input for
      simplicity, but this function is *nestable*, and therefore also accepts
      :class:`ivy.Container` instances in place of any of the arguments.
      """
      return current_backend(x).swapaxes(
          x, axis0, axis1, copy=copy, out=out
      )
  
imports: from typing import Union, Optional, Tuple, List, Iterable, Sequence
  from numbers import Number
  from numpy.core.numeric import normalize_axis_tuple
  import ivy
  from ivy.utils.backend import current_backend
  from ivy.func_wrapper import handle_array_function, to_native_arrays_and_back, handle_out_argument, handle_nestable, handle_array_like_without_promotion, handle_view, handle_device, handle_backend_invalid
  from ivy.utils.exceptions import handle_exceptions
label_desc: Use image node_id 14 for calling a global function with example usage: swapaxes() and returns: current_backend