src/transformers/feature_extraction_utils.py/BatchFeature/__getattr__
class BatchFeature:    def __getattr__(self, item: str):
        try:
            return self.data[item]
        except KeyError:
            raise AttributeError