code: def test_deleted(tmp_dir, scm, dvc, tmp, staged):
      tmp_dir.scm_gen("file", "file", commit="commit file")
      stage = dvc.stage.add(
          cmd="cat file",
          deps=["file"],
          name="foo",
      )
      scm.add_commit(["dvc.yaml"], message="add dvc.yaml")
  
      file = tmp_dir / "file"
      file.unlink()
      if staged:
          scm.add(["file"])
  
      with pytest.raises(ReproductionError) as exc_info:
          dvc.experiments.run(stage.addressing, tmp_dir=tmp)
  
      cause = exc_info._excinfo[1].__cause__
      assert isinstance(cause, DependencyDoesNotExistError)
      assert not file.exists()
  
imports: import pytest
  from funcy import first
  from dvc.dependency.base import DependencyDoesNotExistError
  from dvc.exceptions import ReproductionError
label_desc: Use image node_id 1 for calling a global function with example usage: test_deleted(tmp_dir, scm, dvc, tmp, staged) without return types