code: def _get_edges(padded, axis, width_pair):
      """Retrieves edge values from an empty-padded array along a given axis.
  
      Args:
        padded(cupy.ndarray): Empty-padded array.
        axis(int): Dimension in which the edges are considered.
        width_pair((int, int)): Pair of widths that mark the pad area on both
            sides in the given dimension.
      """
      left_index = width_pair[0]
      left_slice = _slice_at_axis(
          slice(left_index, left_index + 1), axis
      )
      left_edge = padded[left_slice]
  
      right_index = padded.shape[axis] - width_pair[1]
      right_slice = _slice_at_axis(
          slice(right_index - 1, right_index), axis
      )
      right_edge = padded[right_slice]
  
      return left_edge, right_edge
  
file_path: cupy/cupy/_padding/pad.py
imports: import numbers
  import numpy
  import cupy
label_desc: Use image node_id 6 for calling a global function with example usage: _get_edges(padded, axis, width_pair) and returns: left_edge,  right_edge