code: def test_import_pipeline_tracked_outs(
      tmp_dir, dvc, scm, erepo_dir, run_copy, local_remote
  ):
      from dvc.dvcfile import LOCK_FILE, PROJECT_FILE
  
      tmp_dir.gen("foo", "foo")
      run_copy("foo", "bar", name="copy-foo-bar")
      dvc.push()
  
      dvc.scm.add([PROJECT_FILE, LOCK_FILE])
      dvc.scm.commit("add pipeline stage")
  
      with erepo_dir.chdir():
          erepo_dir.dvc.imp(
              f"file://{tmp_dir.as_posix()}", "bar", out="baz"
          )
          assert (erepo_dir / "baz").read_text() == "foo"
  
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 24 for calling a global function with example usage: test_import_pipeline_tracked_outs(tmp_dir, dvc, scm, erepo_dir, run_copy, local_remote) without return types