docstr: ivy.Array instance method variant of ivy.squeeze. This method simply
  wraps the function, and so the docstring for ivy.squeeze also applies
  to this method with minimal changes.
  
  Parameters
  ----------
  self
      input array.
  axis
      axis (or axes) to squeeze. If a specified axis has a size greater than one,
      a ValueError is. If None, then all squeezable axes are squeezed.
      Default: ``None``.
  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
      an output array having the same data type and elements as x.
  
  
  Examples
  --------
  >>> x = ivy.array([[[0.],[ 1.]]])
  >>> y = x.squeeze(axis=2)
  >>> print(y)
  ivy.array([[0., 1.]])
docstr_tok: ["ivy.Array","instance","method","variant","of","ivy.squeeze",".","This","method","simply","wraps","the","function",",","and","so","the","docstring","for","ivy.squeeze","also","applies","to","this","method","with","minimal","changes",".","Parameters","--","--","--","--","--","self","input","array",".","axis","axis","(","or","axes",")","to","squeeze",".","If","a","specified","axis","has","a","size","greater","than","one",",","a","ValueError","is",".","If","None",",","then","all","squeezable","axes","are","squeezed",".","Default",":","``","None","``",".","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","an","output","array","having","the","same","data","type","and","elements","as","x",".","Examples","--","--","--","--",">",">",">","x","=","ivy.array","(","[","[","[","0",".","]",",","[","1",".","]","]","]",")",">",">",">","y","=","x.squeeze","(","axis=2",")",">",">",">","print","(","y",")","ivy.array","(","[","[","0.",",","1",".","]","]",")"]
code: def squeeze(
      self: ivy.Array,
      /,
      *,
      axis: Optional[Union[int, Sequence[int]]],
      copy: Optional[bool] = None,
      out: Optional[ivy.Array] = None,
  ) -> ivy.Array:
      """ivy.Array instance method variant of ivy.squeeze. This method simply
      wraps the function, and so the docstring for ivy.squeeze also applies
      to this method with minimal changes.
  
      Parameters
      ----------
      self
          input array.
      axis
          axis (or axes) to squeeze. If a specified axis has a size greater than one,
          a ValueError is. If None, then all squeezable axes are squeezed.
          Default: ``None``.
      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
          an output array having the same data type and elements as x.
  
  
      Examples
      --------
      >>> x = ivy.array([[[0.],[ 1.]]])
      >>> y = x.squeeze(axis=2)
      >>> print(y)
      ivy.array([[0., 1.]])
      """
      return ivy.squeeze(self._data, axis=axis, 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 8 for calling the _ArrayWithManipulation obj's underlying member method code with example usage: obj.squeeze() and returns: ivy