def __init__(
        self,
        urls,
        nshards=sys.maxsize,
        worker_seed=None,
        deterministic=False,
        epoch=-1,
        search=False
    ):
        """Sample shards from the shard list with replacement.

        :param urls: a list of URLs as a Python list or brace notation string
        """
        super().__init__()
        multi_urls = urls.split(";")
        urls = []
        for sd in multi_urls:
            urls.extend(wds.shardlists.expand_urls(sd))
        self.urls = urls
        assert isinstance(self.urls[0], str)
        self.nshards = nshards
        self.rng = random.Random()
        self.worker_seed = worker_seed
        self.deterministic = deterministic
        self.epoch = epoch
Sample shards from the shard list with replacement.

        :param urls: a list of URLs as a Python list or brace notation string
        
EVA-CLIP/rei/training/data.py