code: def _percent_selection(self, non_empty_slices):
          
  
          return np.around(self._sampler * len(non_empty_slices) / 100).astype('int64')
docs: Chooses slices at a given percentage between the first and last non-empty slice.