code: def test_pull_import_no_download(tmp_dir, scm, dvc, erepo_dir):
      with erepo_dir.chdir():
          erepo_dir.scm_gen(
              os.path.join("foo", "bar"), b"bar", commit="add bar"
          )
          erepo_dir.dvc_gen(
              os.path.join("foo", "baz"),
              b"baz contents",
              commit="add baz",
          )
          size = (
              len(b"bar")
              + len(b"baz contents")
              + len((erepo_dir / "foo" / ".gitignore").read_bytes())
          )
  
      dvc.imp(
          os.fspath(erepo_dir), "foo", "foo_imported", no_download=True
      )
  
      dvc.pull(["foo_imported.dvc"])
      assert (tmp_dir / "foo_imported").exists()
      assert (tmp_dir / "foo_imported" / "bar").read_bytes() == b"bar"
      assert (
          tmp_dir / "foo_imported" / "baz"
      ).read_bytes() == b"baz contents"
  
      dvc.commit(force=True)
  
      stage = load_file(dvc, "foo_imported.dvc").stage
      if os.name == "nt":
          expected_hash = "2e798234df5f782340ac3ce046f8dfae.dir"
      else:
          expected_hash = "bdb8641831d8fcb03939637e09011c21.dir"
      assert stage.outs[0].hash_info.value == expected_hash
  
      assert stage.outs[0].meta.size == size
      assert stage.outs[0].meta.nfiles == 3
      assert stage.outs[0].meta.isdir
  
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 13 for calling a global function with example usage: test_pull_import_no_download(tmp_dir, scm, dvc, erepo_dir) without return types