code: def test_remove_remote(
      tmp_dir, scm, dvc, exp_stage, git_upstream, use_url
  ):
      remote = git_upstream.url if use_url else git_upstream.remote
  
      ref_info_list = []
      exp_list = []
      for i in range(3):
          results = dvc.experiments.run(
              exp_stage.addressing, params=[f"foo={i}"]
          )
          exp = first(results)
          exp_list.append(exp)
          ref_info = first(exp_refs_by_rev(scm, exp))
          ref_info_list.append(ref_info)
          dvc.experiments.push(remote, [ref_info.name])
          assert git_upstream.tmp_dir.scm.get_ref(str(ref_info)) == exp
  
      dvc.experiments.remove(
          git_remote=remote,
          exp_names=[str(ref_info_list[0]), ref_info_list[1].name],
      )
  
      assert (
          git_upstream.tmp_dir.scm.get_ref(str(ref_info_list[0]))
          is None
      )
      assert (
          git_upstream.tmp_dir.scm.get_ref(str(ref_info_list[1]))
          is None
      )
      assert (
          git_upstream.tmp_dir.scm.get_ref(str(ref_info_list[2]))
          == exp_list[2]
      )
  
      with pytest.raises(
          UnresolvedExpNamesError,
          match=f"Experiment 'foo' does not exist in '{remote}'",
      ):
          dvc.experiments.remove(git_remote=remote, exp_names=["foo"])
  
file_path: dvc/tests/func/experiments/test_remove.py
imports: import pytest
  from funcy import first
  from dvc.exceptions import InvalidArgumentError
  from dvc.repo.experiments.exceptions import UnresolvedExpNamesError
  from dvc.repo.experiments.utils import exp_refs_by_rev
label_desc: Use image node_id 5 for calling a global function with example usage: test_remove_remote(tmp_dir, scm, dvc, exp_stage, git_upstream, use_url) without return types