code: def _check_bounds(self, v):
          
          below_bounds = v < self._x[0]
          above_bounds = v > self._x[-1]
  
          if self.bounds_error and below_bounds.any():
              raise ValueError("A value in x_new is below the interpolation "
                  "range.")
          if self.bounds_error and above_bounds.any():
              raise ValueError("A value in x_new is above the interpolation "
                  "range.")
  
          return below_bounds, above_bounds
docs: Check which values are out of bounds.
  
          Raises
          ------
          ValueError: