src/transformers/pipelines/base.py/PipelineIterator/__next__
class PipelineIterator:        def __next__(self):
            item = next(self.iterator)
            processed = self.infer(item, **self.params)
            return processed