code: def num_indices_generated(self):
          
          if self.repeats == -1:
              return np.inf
          else:
              return self.length * self.repeats
docs: Get the number of indices that would be generated by this
          sampler.
  
          Returns
          -------
          int, `np.inf` or `None`.
              An int if the number of samples is known, `np.inf` if it is
              infinite or `None` if the number of samples is unknown.