code: def test_pull_imported_stage(tmp_dir, dvc, erepo_dir):
      with erepo_dir.chdir():
          erepo_dir.dvc_gen("foo", "foo content", commit="create foo")
      dvc.imp(os.fspath(erepo_dir), "foo", "foo_imported")
  
      dst_stage = load_file(dvc, "foo_imported.dvc").stage
      dst_cache = dst_stage.outs[0].cache_path
  
      remove("foo_imported")
      remove(dst_cache)
      dvc.pull(["foo_imported.dvc"])
  
      assert os.path.isfile("foo_imported")
      assert os.path.isfile(dst_cache)
  
imports: import filecmp
  import os
  import pytest
  from funcy import first
  from dvc.cachemgr import CacheManager
  from dvc.config import NoRemoteError
  from dvc.dvcfile import load_file
  from dvc.fs import system
  from dvc.scm import Git
  from dvc.stage.exceptions import StagePathNotFoundError
  from dvc.testing.tmp_dir import make_subrepo
  from dvc.utils.fs import remove
  from dvc_data.index.index import DataIndexDirError
label_desc: Use image node_id 11 for calling a global function with example usage: test_pull_imported_stage(tmp_dir, dvc, erepo_dir) without return types