code: def test_staged_new_file(tmp_dir, scm, dvc, tmp):
      stage = dvc.stage.add(
          cmd="cat file",
          name="foo",
      )
      scm.add_commit(["dvc.yaml"], message="add dvc.yaml")
  
      (tmp_dir / "file").write_text("file")
      scm.add(["file"])
  
      results = dvc.experiments.run(stage.addressing, tmp_dir=tmp)
      exp = first(results)
      fs = scm.get_fs(exp)
      assert fs.exists("file")
  
imports: import pytest
  from funcy import first
  from dvc.dependency.base import DependencyDoesNotExistError
  from dvc.exceptions import ReproductionError
label_desc: Use image node_id 3 for calling a global function with example usage: test_staged_new_file(tmp_dir, scm, dvc, tmp) without return types