code: def test_is_dir_with_local_filesystem(tmp_path):
      fs = LocalFileSystem()
      tmp_existing_directory = tmp_path
      tmp_non_existing_directory = tmp_path / "non_existing"
  
      assert _is_dir(fs, tmp_existing_directory)
      assert not _is_dir(fs, tmp_non_existing_directory)
  
file_path: pytorch-lightning/tests/tests_fabric/utilities/test_cloud_io.py
imports: import os
  import fsspec
  from fsspec.implementations.local import LocalFileSystem
  from fsspec.spec import AbstractFileSystem
  from lightning.fabric.utilities.cloud_io import _is_dir, get_filesystem
label_desc: Use image node_id 3 for calling a global function with example usage: test_is_dir_with_local_filesystem(tmp_path) without return types