code: def test_import_non_existing(erepo_dir, tmp_dir, dvc):
      with pytest.raises(FileNotFoundError):
          tmp_dir.dvc.imp(os.fspath(erepo_dir), "invalid_output")
  
      # https://github.com/iterative/dvc/pull/2837#discussion_r352123053
      with pytest.raises(FileNotFoundError):
          tmp_dir.dvc.imp(os.fspath(erepo_dir), "/root/", "root")
  
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 21 for calling a global function with example usage: test_import_non_existing(erepo_dir, tmp_dir, dvc) without return types