src/transformers/tokenization_utils_base.py/BatchEncoding/__setstate__
class BatchEncoding:    def __setstate__(self, state):
        if "data" in state:
            self.data = state["data"]

        if "encodings" in state:
            self._encodings = state["encodings"]