docstr: ivy.Array instance method variant of ivy.swap_axes. This method
  simply wraps the function, and so the docstring for ivy.split also
  applies to this method with minimal changes.
  
  Parameters
  ----------
  self
      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.
  
  Examples
  --------
  Using :class:`ivy.Array` instance method:
  
  >>> x = ivy.array([[0., 1., 2.]])
  >>> y = x.swapaxes(0, 1)
  >>> print(y)
  ivy.array([[0.],
             [1.],
             [2.]])
  
  >>> x = ivy.array([[[0,1],[2,3]],[[4,5],[6,7]]])
  >>> y = x.swapaxes(0, 2)
  >>> print(y)
  ivy.array([[[0, 4],
              [2, 6]],
             [[1, 5],
              [3, 7]]])
docstr_tok: ["ivy.Array","instance","method","variant","of","ivy.swap_axes",".","This","method","simply","wraps","the","function",",","and","so","the","docstring","for","ivy.split","also","applies","to","this","method","with","minimal","changes",".","Parameters","--","--","--","--","--","self","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",".","Examples","--","--","--","--","Using",":","class",":","`","ivy.Array","`","instance","method",":",">",">",">","x","=","ivy.array","(","[","[","0.",",","1.",",","2",".","]","]",")",">",">",">","y","=","x.swapaxes","(","0",",","1",")",">",">",">","print","(","y",")","ivy.array","(","[","[","0",".","]",",","[","1",".","]",",","[","2",".","]","]",")",">",">",">","x","=","ivy.array","(","[","[","[","0,1","]",",","[","2,3","]","]",",","[","[","4,5","]",",","[","6,7","]","]","]",")",">",">",">","y","=","x.swapaxes","(","0",",","2",")",">",">",">","print","(","y",")","ivy.array","(","[","[","[","0",",","4","]",",","[","2",",","6","]","]",",","[","[","1",",","5","]",",","[","3",",","7","]","]","]",")"]
code: def swapaxes(
      self: ivy.Array,
      axis0: int,
      axis1: int,
      /,
      *,
      copy: Optional[bool] = None,
      out: Optional[ivy.Array] = None,
  ) -> ivy.Array:
      """ivy.Array instance method variant of ivy.swap_axes. This method
      simply wraps the function, and so the docstring for ivy.split also
      applies to this method with minimal changes.
  
      Parameters
      ----------
      self
          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.
  
      Examples
      --------
      Using :class:`ivy.Array` instance method:
  
      >>> x = ivy.array([[0., 1., 2.]])
      >>> y = x.swapaxes(0, 1)
      >>> print(y)
      ivy.array([[0.],
                 [1.],
                 [2.]])
  
      >>> x = ivy.array([[[0,1],[2,3]],[[4,5],[6,7]]])
      >>> y = x.swapaxes(0, 2)
      >>> print(y)
      ivy.array([[[0, 4],
                  [2, 6]],
                 [[1, 5],
                  [3, 7]]])
      """
      return ivy.swapaxes(self._data, axis0, axis1, copy=copy, out=out)
  
imports: import abc
  from typing import Optional, Union, Tuple, List, Iterable, Sequence
  from numbers import Number
  import ivy
  from ivy import handle_view
label_desc: Use image node_id 14 for calling the _ArrayWithManipulation obj's underlying member method code with example usage: obj.swapaxes() and returns: ivy