code: def _get_edges(padded, axis, width_pair):
      """
      Retrieve edge values from empty-padded array in given dimension.
  
      Parameters
      ----------
      padded : 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.
  
      Returns
      -------
      left_edge, right_edge : ndarray
          Edge values of the valid area in `padded` in the given dimension. Its
          shape will always match `padded` except for the dimension given by
          `axis` which will have a length of 1.
      """
      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: catboost/contrib/python/numpy/py3/numpy/lib/arraypad.py
imports: import numpy
  from numpy.core.overrides import array_function_dispatch
  from numpy.lib.index_tricks import ndindex
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