code: def test_isdir_isfile(tmp_dir, dvc):
      tmp_dir.gen(
          {
              "datafile": "data",
              "datadir": {
                  "foo": "foo",
                  "bar": "bar",
              },
              "subdir": {
                  "baz": "baz",
                  "data": {
                      "abc": "abc",
                      "xyz": "xyz",
                  },
              },
          },
      )
  
      fs = DVCFileSystem(repo=dvc)
      assert fs.isdir("datadir")
      assert not fs.isfile("datadir")
      assert not fs.isdvc("datadir")
      assert not fs.isdir("datafile")
      assert fs.isfile("datafile")
      assert not fs.isdvc("datafile")
  
      dvc.add(
          [
              "datadir",
              "datafile",
              os.path.join("subdir", "baz"),
              os.path.join("subdir", "data"),
          ]
      )
      shutil.rmtree(tmp_dir / "datadir")
      shutil.rmtree(tmp_dir / "subdir" / "data")
      (tmp_dir / "datafile").unlink()
      (tmp_dir / "subdir" / "baz").unlink()
  
      fs = DVCFileSystem(repo=dvc)
      assert fs.isdir("datadir")
      assert not fs.isfile("datadir")
      assert fs.isdvc("datadir")
      assert not fs.isdir("datafile")
      assert fs.isfile("datafile")
      assert fs.isdvc("datafile")
  
      assert fs.isdir("subdir")
      assert not fs.isfile("subdir")
      assert not fs.isdvc("subdir")
      assert fs.isfile("subdir/baz")
      assert fs.isdir("subdir/data")
  
imports: import os
  import posixpath
  import shutil
  import pytest
  from fsspec.utils import tokenize
  from dvc.fs import localfs
  from dvc.fs.dvc import DVCFileSystem
  from dvc.testing.tmp_dir import make_subrepo
  from dvc_data.hashfile.build import build
  from dvc_data.hashfile.hash_info import HashInfo
label_desc: Use image node_id 6 for calling a global function with example usage: test_isdir_isfile(tmp_dir, dvc) without return types