code: def select_item(x, t):
      """Select elements stored in given indices.
  
      This function returns ``t.choose(x.T)``, that means
      ``y[i] == x[i, t[i]]`` for all ``i``.
  
      Args:
          x (:class:`~chainer.Variable` or :ref:`ndarray`):
              Variable storing arrays. A two-dimensional float array.
          t (:class:`~chainer.Variable` or :ref:`ndarray`):
              Variable storing index numbers. A one-dimensional int array.
              Length of the ``t`` should be equal to ``x.shape[0]``.
  
      Returns:
          ~chainer.Variable: Variable that holds ``t``-th element of ``x``.
  
      .. admonition:: Example
  
          >>> x = np.array([[0, 1, 2], [3, 4, 5]], np.float32)
          >>> t = np.array([0, 2], np.int32)
          >>> y = F.select_item(x, t)
          >>> y.shape
          (2,)
          >>> y.array
          array([0., 5.], dtype=float32)
  
      """
      return SelectItem().apply((x, t))[0]
  
file_path: chainer/chainer/functions/array/select_item.py
imports: import numpy
  import six
  import chainer
  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 1 for calling a global function with example usage: select_item(x, t) and returns: SelectItem