code: def test_isdir_mixed(tmp_dir, dvc):
      tmp_dir.gen({"dir": {"foo": "foo", "bar": "bar"}})
  
      dvc.add(str(tmp_dir / "dir" / "foo"))
  
      fs = DVCFileSystem(repo=dvc)
      assert fs.isdir("dir")
      assert not fs.isfile("dir")
  
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 8 for calling a global function with example usage: test_isdir_mixed(tmp_dir, dvc) without return types