src/transformers/utils/fx.py/HFProxy/__contains__
class HFProxy:    def __contains__(self, key):
        if hasattr(self, "_metadata") and self._metadata is not None:
            return key in self._metadata
        return super().__contains__(key)