code: def test_push_to_hub_fails_with_invalid_token(self):
      serialization_dir = (
          self.FIXTURES_ROOT / "simple_tagger" / "serialization_full"
      )
      with pytest.raises(ValueError):
          push_to_hf(
              repo_name=REPO_NAME,
              serialization_dir=serialization_dir,
              local_repo_path=self.local_repo_path,
              use_auth_token="invalid token",
          )
  
file_path: allennlp/tests/common/push_to_hub_test.py
imports: import shutil
  import time
  import pytest
  import requests
  from huggingface_hub import HfApi, Repository
  from unittest.mock import patch
  from allennlp.common.push_to_hf import push_to_hf
  from allennlp.common.testing import AllenNlpTestCase
  from allennlp.models import load_archive
label_desc: Use image node_id 6 for calling the TestPushToHub obj's underlying member method code with example usage: obj.test_push_to_hub_fails_with_invalid_token() without return types