def METHOD_NAME(self):
    repo_id = f"{USER}/{repo_name('push_to_hub')}"
    DummyModel().push_to_hub(repo_id=repo_id, api_endpoint=ENDPOINT_STAGING, token=TOKEN, config=CONFIG)
    # Test model id exists
    model_info = self._api.model_info(repo_id)
    self.assertEqual(model_info.modelId, repo_id)
    # Test config has been pushed to hub
    tmp_config_path = hf_hub_download(
        repo_id=repo_id,
        filename="config.json",
        use_auth_token=TOKEN,
        cache_dir=self.cache_dir,
    )
    with open(tmp_config_path) as f:
        self.assertDictEqual(json.load(f), CONFIG)
    # Delete repo
    self._api.delete_repo(repo_id=repo_id)