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