code: def test_cleanfs_subrepo(tmp_dir, dvc, scm, monkeypatch):
      tmp_dir.gen({"subdir": {}})
      subrepo_dir = tmp_dir / "subdir"
      with subrepo_dir.chdir():
          subrepo = Repo.init(subdir=True)
          subrepo_dir.gen({"foo": "foo", "dir": {"bar": "bar"}})
  
      path = subrepo_dir.fs_path
  
      assert dvc.fs.exists(dvc.fs.join(path, "foo"))
      assert dvc.fs.isfile(dvc.fs.join(path, "foo"))
      assert dvc.fs.exists(dvc.fs.join(path, "dir"))
      assert dvc.fs.isdir(dvc.fs.join(path, "dir"))
  
      assert subrepo.fs.exists(subrepo.fs.join(path, "foo"))
      assert subrepo.fs.isfile(subrepo.fs.join(path, "foo"))
      assert subrepo.fs.exists(subrepo.fs.join(path, "dir"))
      assert subrepo.fs.isdir(subrepo.fs.join(path, "dir"))
  
imports: import os
  from operator import itemgetter
  from dvc.repo import Repo
label_desc: Use image node_id 1 for calling a global function with example usage: test_cleanfs_subrepo(tmp_dir, dvc, scm, monkeypatch) without return types