docstr: ivy.Array instance method variant of ivy.stack. This method simply
  wraps the function, and so the docstring for ivy.stack also applies to
  this method with minimal changes.
  
  Parameters
  ----------
  self
      Array to join with other ``arrays``.
  arrays
      Other arrays to join with. Each array must have the same shape.
  axis
      axis along which the arrays will be joined. More details can be found in
      the ``ivy.stack`` documentation.
  out
      optional output array, for writing the result to. It must have a shape
      that the inputs broadcast to.
  
  Returns
  -------
  ret
      output array made by joining the input arrays along the specified axis.
  
  Examples
  --------
  >>> x = ivy.array([1, 2])
  >>> y = ivy.array([5, 6])
  >>> print(x.stack(y, axis=1))
  ivy.array([[1, 5],
          [2, 6]])
  
  >>> x.stack([y],axis=0)
  ivy.array([[[1, 2]],
          [[5, 6]]])
docstr_tok: ["ivy.Array","instance","method","variant","of","ivy.stack",".","This","method","simply","wraps","the","function",",","and","so","the","docstring","for","ivy.stack","also","applies","to","this","method","with","minimal","changes",".","Parameters","--","--","--","--","--","self","Array","to","join","with","other","``","arrays","``",".","arrays","Other","arrays","to","join","with",".","Each","array","must","have","the","same","shape",".","axis","axis","along","which","the","arrays","will","be","joined",".","More","details","can","be","found","in","the","``","ivy.stack","``","documentation",".","out","optional","output","array",",","for","writing","the","result","to",".","It","must","have","a","shape","that","the","inputs","broadcast","to",".","Returns","--","--","--","-","ret","output","array","made","by","joining","the","input","arrays","along","the","specified","axis",".","Examples","--","--","--","--",">",">",">","x","=","ivy.array","(","[","1",",","2","]",")",">",">",">","y","=","ivy.array","(","[","5",",","6","]",")",">",">",">","print","(","x.stack","(","y",",","axis=1",")",")","ivy.array","(","[","[","1",",","5","]",",","[","2",",","6","]","]",")",">",">",">","x.stack","(","[","y","]",",","axis=0",")","ivy.array","(","[","[","[","1",",","2","]","]",",","[","[","5",",","6","]","]","]",")"]
code: def stack(
      self: ivy.Array,
      /,
      arrays: Union[
          Tuple[Union[ivy.Array, ivy.NativeArray]],
          List[Union[ivy.Array, ivy.NativeArray]],
      ],
      *,
      axis: int = 0,
      out: Optional[ivy.Array] = None,
  ) -> ivy.Array:
      """ivy.Array instance method variant of ivy.stack. This method simply
      wraps the function, and so the docstring for ivy.stack also applies to
      this method with minimal changes.
  
      Parameters
      ----------
      self
          Array to join with other ``arrays``.
      arrays
          Other arrays to join with. Each array must have the same shape.
      axis
          axis along which the arrays will be joined. More details can be found in
          the ``ivy.stack`` documentation.
      out
          optional output array, for writing the result to. It must have a shape
          that the inputs broadcast to.
  
      Returns
      -------
      ret
          output array made by joining the input arrays along the specified axis.
  
      Examples
      --------
      >>> x = ivy.array([1, 2])
      >>> y = ivy.array([5, 6])
      >>> print(x.stack(y, axis=1))
      ivy.array([[1, 5],
              [2, 6]])
  
      >>> x.stack([y],axis=0)
      ivy.array([[[1, 2]],
              [[5, 6]]])
      """
      if not isinstance(arrays, (tuple, list)):
          arrays = [arrays]
      if isinstance(arrays, tuple):
          x = (self._data,) + arrays
      else:
          x = [self._data] + arrays
      return ivy.stack(x, 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 9 for calling the _ArrayWithManipulation obj's underlying member method code with example usage: obj.stack(arrays) and returns: ivy