code: def test_get(tmp_dir, scm, dvc, exp_stage, erepo_dir, use_ref):
      from dvc.repo import Repo
  
      results = dvc.experiments.run(
          exp_stage.addressing, params=["foo=2"]
      )
      exp_rev = first(results)
      exp_ref = first(exp_refs_by_rev(scm, exp_rev))
  
      with erepo_dir.chdir():
          Repo.get(
              str(tmp_dir),
              "params.yaml",
              rev=exp_ref.name if use_ref else exp_rev,
          )
          assert (
              erepo_dir / "params.yaml"
          ).read_text().strip() == "foo: 2"
  
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 15 for calling a global function with example usage: test_get(tmp_dir, scm, dvc, exp_stage, erepo_dir, use_ref) without return types