code: def test_untracked_top_level_files_are_included_in_exp(
      tmp_dir, scm, dvc
  ):
      (tmp_dir / "dvc.yaml").dump(
          {
              "metrics": ["metrics.json"],
              "params": ["params.yaml"],
              "plots": ["plots.csv"],
          }
      )
      stage = dvc.stage.add(
          cmd="touch metrics.json && touch params.yaml && touch plots.csv",
          name="top-level",
      )
      scm.add_commit(["dvc.yaml"], message="add dvc.yaml")
      dvc.reproduce(stage.addressing)
      exp = dvc.experiments.save()
      fs = scm.get_fs(exp)
      for file in [
          "metrics.json",
          "params.yaml",
          "plots.csv",
          "dvc.lock",
      ]:
          assert fs.exists(file)
  
file_path: dvc/tests/func/experiments/test_save.py
imports: import pytest
  from funcy import first
  from dvc.repo.experiments.exceptions import ExperimentExistsError, InvalidArgumentError
  from dvc.repo.experiments.utils import exp_refs_by_rev
  from dvc.scm import resolve_rev
label_desc: Use image node_id 10 for calling a global function with example usage: test_untracked_top_level_files_are_included_in_exp(tmp_dir, scm, dvc) without return types