code: def slice_to_numerical_args(slice_, num_examples):
          
          start = slice_.start if slice_.start is not None else 0
          stop = slice_.stop if slice_.stop is not None else num_examples
          step = slice_.step if slice_.step is not None else 1
          return start, stop, step
docs: Translate a slice's attributes into numerical attributes.
  
          Parameters
          ----------
          slice_ : :class:`slice`
              Slice for which numerical attributes are wanted.
          num_examples : int
              Number of examples in the indexable that is to be sliced
              through. This determines the numerical value for the `stop`
              attribute in case it's `None`.