code: def put(a, ind, v, mode="wrap"):
      """Replaces specified elements of an array with given values.
  
      Args:
          a (cupy.ndarray): Target array.
          ind (array-like): Target indices, interpreted as integers.
          v (array-like): Values to place in `a` at target indices.
              If `v` is shorter than `ind` it will be repeated as necessary.
          mode (str): How out-of-bounds indices will behave. Its value must be
              either `'raise'`, `'wrap'` or `'clip'`. Otherwise,
              :class:`TypeError` is raised.
  
      .. note::
          Default `mode` is set to `'wrap'` to avoid unintended performance drop.
          If you need NumPy's behavior, please pass `mode='raise'` manually.
  
      .. seealso:: :func:`numpy.put`
      """
      a.put(ind, v, mode=mode)
  
file_path: cupy/cupy/_indexing/insert.py
imports: import numpy
  import cupy
  from cupy import _core
label_desc: Use image node_id 2 for calling a global function with example usage: put(a, ind, v, mode) without return types