code: def _docs_indexing():
      _docs.set_doc(
          chainerx.take,
          """take(a, indices, axis)
  Takes elements from an array along an axis.
  
  Args:
      a (~chainerx.ndarray): Source array.
      indices (~chainerx.ndarray):
          The indices of the values to extract. When indices are out of bounds,
          they are wrapped around.
      axis (int): The axis over which to select values.
      mode (str): Specifies how out-of-bounds indices will behave.
          'raise' - raise an error
          'wrap' - wrap around
          'clip' - clip to the range
  
  Returns:
      :func:`~chainerx.ndarray`: Output array.
  
  Note:
      This function currently does not support ``axis=None``
  
  Note:
      During backpropagation, this function propagates the gradient of the
      output array to the input array ``a``.
  
  Note:
     The default mode for the native backend is 'raise', while for the cuda
     backend is 'wrap' in order to prevent device synchronization.
     'raise' mode is currently not supported in the CUDA backend.
  
  .. seealso:: :func:`numpy.take`
  """,
      )
  
      _docs.set_doc(
          chainerx.where,
          """where(condition, x, y)
  Return elements chosen from ``x`` or ``y`` depending on condition.
  
  Args:
      condition (~chainerx.ndarray): Where True, yield ``x``, otherwise
      yield ``y``.
      x (~chainerx.ndarray): Values from which to choose.
      y (~chainerx.ndarray): Values from which to choose.
  
  Returns:
      :func:`~chainerx.ndarray`: An array with elements
      from ``x`` where condition is True, and elements from ``y`` elsewhere.
  
  Note:
      During backpropagation, this function propagates the gradient of the
      output array to the input array ``x`` and ``y``.
  
  .. seealso:: :func:`numpy.where`
  """,
      )
  
      _docs.set_doc(
          chainerx.nonzero,
          """nonzero(a)
  Return the indices of the elements that are non-zero.
  
  Args:
      a (~chainerx.ndarray): Input array.
  
  Returns:
      tuple of :func:`~chainerx.ndarray`: Indices of elements that are non-zero.
  
  Note:
      During backpropagation, this function does not propagate gradients.
  
  .. seealso:: :func:`numpy.nonzero`
  """,
      )
  
file_path: chainer/chainerx/_docs/routines.py
imports: import chainerx
  from chainerx import _docs
label_desc: Use image node_id 4 for calling a global function with example usage: _docs_indexing() without return types