docstr: ivy.Array instance method variant of ivy.expand_dims. This method
  simply wraps the function, and so the docstring for ivy.expand_dims
  also applies to this method with minimal changes.
  
  Parameters
  ----------
  self
      input array.
  axis
      position in the expanded array where a new axis (dimension) of size one
      will be added. If array ``self`` has the rank of ``N``, the ``axis`` needs
      to be between ``[-N-1, N]``. Default: ``0``.
  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 array with the elements of ``self``, but with its dimension added
      by one in a given ``axis``.
  
  Examples
  --------
  >>> x = ivy.array([-4.7, -2.3, 0.7]) #x.shape->(3,)
  >>> y = x.expand_dims() #y.shape->(1, 3)
  >>> print(y)
  ivy.array([[-4.7, -2.3,  0.7]])
docstr_tok: ["ivy.Array","instance","method","variant","of","ivy.expand_dims",".","This","method","simply","wraps","the","function",",","and","so","the","docstring","for","ivy.expand_dims","also","applies","to","this","method","with","minimal","changes",".","Parameters","--","--","--","--","--","self","input","array",".","axis","position","in","the","expanded","array","where","a","new","axis","(","dimension",")","of","size","one","will","be","added",".","If","array","``","self","``","has","the","rank","of","``","N","``",",","the","``","axis","``","needs","to","be","between","``","[","-N-1",",","N","]","``",".","Default",":","``","0","``",".","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","array","with","the","elements","of","``","self","``",",","but","with","its","dimension","added","by","one","in","a","given","``","axis","``",".","Examples","--","--","--","--",">",">",">","x","=","ivy.array","(","[","-4.7",",","-2.3",",","0.7","]",")","#","x.shape-",">","(","3",",",")",">",">",">","y","=","x.expand_dims","(",")","#","y.shape-",">","(","1",",","3",")",">",">",">","print","(","y",")","ivy.array","(","[","[","-4.7",",","-2.3",",","0.7","]","]",")"]
code: def expand_dims(
      self: ivy.Array,
      /,
      *,
      copy: Optional[bool] = None,
      axis: Union[int, Sequence[int]] = 0,
      out: Optional[ivy.Array] = None,
  ) -> ivy.Array:
      """ivy.Array instance method variant of ivy.expand_dims. This method
      simply wraps the function, and so the docstring for ivy.expand_dims
      also applies to this method with minimal changes.
  
      Parameters
      ----------
      self
          input array.
      axis
          position in the expanded array where a new axis (dimension) of size one
          will be added. If array ``self`` has the rank of ``N``, the ``axis`` needs
          to be between ``[-N-1, N]``. Default: ``0``.
      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 array with the elements of ``self``, but with its dimension added
          by one in a given ``axis``.
  
      Examples
      --------
      >>> x = ivy.array([-4.7, -2.3, 0.7]) #x.shape->(3,)
      >>> y = x.expand_dims() #y.shape->(1, 3)
      >>> print(y)
      ivy.array([[-4.7, -2.3,  0.7]])
      """
      return ivy.expand_dims(self._data, copy=copy, axis=axis, 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 3 for calling the _ArrayWithManipulation obj's underlying member method code with example usage: obj.expand_dims() and returns: ivy