src/transformers/pipelines/pt_utils.py/PipelineDataset/__getitem__
class PipelineDataset:    def __getitem__(self, i):
        item = self.dataset[i]
        processed = self.process(item, **self.params)
        return processed