src/transformers/pipelines/pt_utils.py/PipelineChunkIterator/__iter__
class PipelineChunkIterator:    def __iter__(self):
        self.iterator = iter(self.loader)
        self.subiterator = None
        return self