def METHOD_NAME(self):
    if not self._has_next:
        return None
    # Multiple users per batch
    end_idx = min(self._start_idx + self.batch_size, self.num_paths)
    batch_idx = self._rand_perm[self._start_idx:end_idx]
    batch_indexes = self.indexes[batch_idx]
    self._has_next = self._has_next and end_idx < self.num_paths
    self._start_idx = end_idx
    return batch_indexes.tolist()