[docs]classSoccerNetClipSampler(Sampler,ABC):"""Base class for SoccerNet clip samplers. Args: data_source: SoccerNet dataset. shuffle: Whether to shuffle indices. """def__init__(self,data_source:SoccerNet,shuffle:bool=False,)->None:super().__init__(data_source)self.data_source=data_sourceself.epoch=0self.seed=get_default_seed()self._shuffle=shuffle@propertydefshuffle(self)->bool:returnself._shuffledefset_shuffle(self,shuffle:bool)->None:"""Set shuffle value. Args: shuffle: Value for shuffle. """self._shuffle=shuffledefset_epoch(self,epoch:int)->None:"""Sets the epoch for this sampler. This ensures that at each epoch the windows are not the same for relevant subclass samplers. Args: epoch: Epoch number. """self.epoch=epoch