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