src/transformers/models/transfo_xl/tokenization_transfo_xl.py/LMShuffledIterator/__iter__
class LMShuffledIterator:    def __iter__(self):
        # sent_stream is an iterator
        sent_stream = self.get_sent_stream()

        for batch in self.stream_iterator(sent_stream):
            yield batch