code: def test_auth_error_push(
      tmp_dir, scm, dvc, exp_stage, http_auth_patch
  ):
      from dvc.scm import GitAuthError
  
      results = dvc.experiments.run(
          exp_stage.addressing, params=["foo=2"]
      )
      exp = first(results)
      ref_info = first(exp_refs_by_rev(scm, exp))
  
      with pytest.raises(
          GitAuthError,
          match=f"Authentication failed for: '{http_auth_patch}'",
      ):
          dvc.experiments.push(http_auth_patch, [ref_info.name])
  
file_path: dvc/tests/func/experiments/test_remote.py
imports: import logging
  import pytest
  from funcy import first
  from dvc.repo.experiments.utils import exp_refs_by_rev
label_desc: Use image node_id 14 for calling a global function with example usage: test_auth_error_push(tmp_dir, scm, dvc, exp_stage, http_auth_patch) without return types