code: def isdir(path: PathType) -> bool:
      """Return whether a path is a directory."""
      return _get_filesystem(path).isdir(path)
  
imports: from typing import Any, Callable, Iterable, List, Optional, Tuple, Type
  from tfx.dsl.io import filesystem
  from tfx.dsl.io import filesystem_registry
  from tfx.dsl.io.filesystem import PathType
  import tfx.dsl.io.plugins.tensorflow_gfile
  import tfx.dsl.io.plugins.local
label_desc: Use image node_id 6 for calling a global function with example usage: isdir(path) and returns: _get_filesystem