docstr: ivy.Array instance method variant of ivy.gather_nd. This method
  simply wraps the function, and so the docstring for ivy.gather_nd also
  applies to this method with minimal changes.
  
  Parameters
  ----------
  self
      The array from which to gather values.
  indices
      Index array.
  batch_dims
      optional int, lets you gather different items from each element of a batch.
  out
      optional output array, for writing the result to. It must have a shape that
      the inputs broadcast to.
  
  Returns
  -------
  ret
      New array of given shape, with the values gathered at the indices.
  
  Examples
  --------
  >>> x = ivy.array([1, 2, 3])
  >>> y = ivy.array([1])
  >>> z = x.gather_nd(y)
  >>> print(z)
  ivy.array(2)
docstr_tok: ["ivy.Array","instance","method","variant","of","ivy.gather_nd",".","This","method","simply","wraps","the","function",",","and","so","the","docstring","for","ivy.gather_nd","also","applies","to","this","method","with","minimal","changes",".","Parameters","--","--","--","--","--","self","The","array","from","which","to","gather","values",".","indices","Index","array",".","batch_dims","optional","int",",","lets","you","gather","different","items","from","each","element","of","a","batch",".","out","optional","output","array",",","for","writing","the","result","to",".","It","must","have","a","shape","that","the","inputs","broadcast","to",".","Returns","--","--","--","-","ret","New","array","of","given","shape",",","with","the","values","gathered","at","the","indices",".","Examples","--","--","--","--",">",">",">","x","=","ivy.array","(","[","1",",","2",",","3","]",")",">",">",">","y","=","ivy.array","(","[","1","]",")",">",">",">","z","=","x.gather_nd","(","y",")",">",">",">","print","(","z",")","ivy.array","(","2",")"]
code: def gather_nd(
      self: ivy.Array,
      indices: Union[ivy.Array, ivy.NativeArray],
      /,
      *,
      batch_dims: int = 0,
      out: Optional[ivy.Array] = None,
  ) -> ivy.Array:
      """ivy.Array instance method variant of ivy.gather_nd. This method
      simply wraps the function, and so the docstring for ivy.gather_nd also
      applies to this method with minimal changes.
  
      Parameters
      ----------
      self
          The array from which to gather values.
      indices
          Index array.
      batch_dims
          optional int, lets you gather different items from each element of a batch.
      out
          optional output array, for writing the result to. It must have a shape that
          the inputs broadcast to.
  
      Returns
      -------
      ret
          New array of given shape, with the values gathered at the indices.
  
      Examples
      --------
      >>> x = ivy.array([1, 2, 3])
      >>> y = ivy.array([1])
      >>> z = x.gather_nd(y)
      >>> print(z)
      ivy.array(2)
      """
      return ivy.gather_nd(
          self, indices, batch_dims=batch_dims, out=out
      )
  
imports: import abc
  import numpy
  from numbers import Number
  from typing import Any, Iterable, Union, Optional, Dict, Callable, List, Tuple
  import ivy
label_desc: Use image node_id 9 for calling the _ArrayWithGeneral obj's underlying member method code with example usage: obj.gather_nd() and returns: ivy