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