code: def test_run_load_one_for_multistage(tmp_dir, dvc):
      tmp_dir.gen("foo", "foo")
      stage1 = dvc.run(
          cmd="cp foo foo2",
          deps=["foo"],
          name="copy-foo-foo2",
          outs_persist_no_cache=["foo2"],
          always_changed=True,
      )
      stage2 = load_file(dvc, PROJECT_FILE).stages["copy-foo-foo2"]
      assert stage1 == stage2
      foo_out = stage2.outs[0]
      assert stage2.cmd == "cp foo foo2"
      assert stage2.name == "copy-foo-foo2"
      assert foo_out.def_path == "foo2"
      assert foo_out.persist
      assert not foo_out.use_cache
      assert stage2.deps[0].def_path == "foo"
      assert dvc.reproduce(":copy-foo-foo2")
  
imports: import textwrap
  import pytest
  from dvc.annotations import Annotation
  from dvc.dvcfile import LOCK_FILE, PROJECT_FILE, ParametrizedDumpError, SingleStageFile, load_file
  from dvc.stage.exceptions import StageFileDoesNotExistError
  from dvc.stage.loader import StageNotFound
  from dvc.utils.strictyaml import YAMLValidationError
label_desc: Use image node_id 1 for calling a global function with example usage: test_run_load_one_for_multistage(tmp_dir, dvc) without return types