<SYSTEM_TASK:>
Solve the following problem using Python, implementing the functions described below, one line at a time
<END_TASK>
<USER_TASK:>
Description:
 def _percent_selection(self, non_empty_slices):
 """Chooses slices at a given percentage between the first and last non-empty slice."""


        return np.around(self._sampler * len(non_empty_slices) / 100).astype('int64')