def get_stream(self):
        """ get a stream of cycled data from the dataset"""

        if self.is_shuffle:
            return itertools.chain.from_iterable(
                map(get_dataset, itertools.cycle(self.file_list))
            )
        else:
            return itertools.chain.from_iterable(
                map(get_dataset, itertools.cycle(random.shuffle(self.file_list)))
            )
 get a stream of cycled data from the dataset
utils_nlp/models/transformers/bertsum/dataset.py