code: def test_info_on_subrepos(make_tmp_dir, tmp_dir, dvc, scm, dvcfs):
      subrepo = tmp_dir / "subrepo"
      make_subrepo(subrepo, scm)
      with subrepo.chdir():
          subrepo.scm_gen("foo", "foo", commit="add foo on subrepo")
          subrepo.dvc_gen(
              "foobar", "foobar", commit="add foobar on subrepo"
          )
  
      for path in [
          "subrepo",
          "subrepo/foo",
          "subrepo/foobar",
      ]:
          info = dvcfs.info(path)
          assert info["repo"].root_dir == str(
              subrepo
          ), f"repo root didn't match for {path}"
  
file_path: dvc/tests/unit/fs/test_dvc_info.py
imports: import os
  import pytest
  from dvc.fs.dvc import DVCFileSystem
  from dvc.testing.tmp_dir import make_subrepo
label_desc: Use image node_id 8 for calling a global function with example usage: test_info_on_subrepos(make_tmp_dir, tmp_dir, dvc, scm, dvcfs) without return types