code: def test_import_configs(
      tmp_dir, scm, dvc, erepo_dir, options, def_repo
  ):
      with erepo_dir.chdir():
          erepo_dir.dvc_gen("foo", "foo content", commit="create foo")
  
      (tmp_dir / "myconfig").touch()
  
      stage = dvc.imp(
          os.fspath(erepo_dir),
          "foo",
          "foo_imported",
          no_exec=True,
          **options,
      )
      assert stage.deps[0].def_repo == {
          "url": os.fspath(erepo_dir),
          **def_repo,
      }
  
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 35 for calling a global function with example usage: test_import_configs(tmp_dir, scm, dvc, erepo_dir, options, def_repo) without return types