code: def _view_roi(array, original_area_slice, axis):
      """
      Get a view of the current region of interest during iterative padding.
  
      When padding multiple dimensions iteratively corner values are
      unnecessarily overwritten multiple times. This function reduces the
      working area for the first dimensions so that corners are excluded.
  
      Parameters
      ----------
      array : ndarray
          The array with the region of interest.
      original_area_slice : tuple of slices
          Denotes the area with original values of the unpadded array.
      axis : int
          The currently padded dimension assuming that `axis` is padded before
          `axis` + 1.
  
      Returns
      -------
      roi : ndarray
          The region of interest of the original `array`.
      """
      axis += 1
      sl = (slice(None),) * axis + original_area_slice[axis:]
      return array[sl]
  
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 3 for calling a global function with example usage: _view_roi(array, original_area_slice, axis) and returns: array