def select_next_frames(self, count: int) -> Sequence[_K]:
        # This approach guarantees that:
        # - every GT frame is used
        # - GT frames are used uniformly (at most min count + 1)
        # - GT frames are not repeated in jobs
        # - honeypot sets are different in jobs
        # - honeypot sets are random
        # if possible (if the job and GT counts allow this).
        # Picks must be reproducible for a given rng state.
        """
        Selects 'count' least used items randomly, without repetition
        """
        return self._counter.select_next_least_used(count)

        Selects 'count' least used items randomly, without repetition
        
cvat/apps/engine/task_validation.py