code: def _pixel_at_array(self, array, i: int, border, padding_mode):  # type: ignore
      assert array.ndim == 1
      d = array.shape[0]
      if padding_mode == "zeros":
          if i >= 0 and i < d:
              pixel = array[i]
          else:
              pixel = 0
      elif padding_mode == "border":
          i = self._clamp(i, 0, d - 1)
          pixel = array[i]
      else:  # padding_mode == "reflection"
          i = int(self._gs_reflect(i, border[0], border[1]))
          pixel = array[i]
      return pixel
  
imports: import numbers
  from typing import List
  import numpy
  from onnx.reference.op_run import OpRun
  from onnx.reference.ops.op_resize import _get_all_coords
label_desc: Use image node_id 13 for calling the GridSample obj's underlying member method code with example usage: obj._pixel_at_array(array, i, border, padding_mode) and returns: pixel