code: def _index_add(augend, indices, addend):
      """Wrapper of :func:`cupyx.scatter_add` and :func:`numpy.add.at`
  
      Args:
          augend (:class:`numpy.ndarray` or :class:`cupy.ndarray`):
              The array modified in-place.
          indices (:class:`numpy.ndarray` or :class:`cupy.ndarray`):
              The indices of ``augend``. The shape is the same to the ``addend``.
          addend (:class:`numpy.ndarray` or :class:`cupy.ndarray`):
              The array to be added.
  
      Returns:
          None
      """
      if isinstance(augend, cuda.ndarray):
          cuda.cupyx.scatter_add(augend, indices, addend)
      elif isinstance(augend, np.ndarray):
          np.add.at(augend, indices, addend)
  
imports: import numpy
  import six
  from chainer import backend
  from chainer.backends import cuda
  from chainer import function_node
  from chainer.utils import type_check
label_desc: Use image node_id 6 for calling a global function with example usage: _index_add(augend, indices, addend) without return types