code: def test_walk_dont_ignore_subrepos(tmp_dir, scm, dvc):
      tmp_dir.dvc_gen({"foo": "foo"}, commit="add foo")
      subrepo_dir = tmp_dir / "subdir"
      subrepo_dir.mkdir()
      with subrepo_dir.chdir():
          Repo.init(subdir=True)
      scm.add(["subdir"])
      scm.commit("Add subrepo")
  
      dvc_fs = dvc.fs
      dvc._reset()
      scm_fs = scm.get_fs("HEAD")
      path = os.fspath(tmp_dir)
      get_dirs = itemgetter(1)
  
      assert set(get_dirs(next(dvc_fs.walk(path)))) == {
          ".dvc",
          "subdir",
          ".git",
      }
      assert set(get_dirs(next(scm_fs.walk("/")))) == {".dvc", "subdir"}
  
imports: import os
  from operator import itemgetter
  from dvc.repo import Repo
label_desc: Use image node_id 2 for calling a global function with example usage: test_walk_dont_ignore_subrepos(tmp_dir, scm, dvc) without return types