code: def isdir(path: Any) -> bool:
      try:
          return os.path.isdir(path)
      except TypeError:
          # data is not path-like (e.g. it may be a list of paths)
          return False
  
file_path: lightning-flash/src/flash/core/data/utilities/paths.py
imports: import os
  from typing import Any, Callable, List, Optional, Tuple, Union, cast
  from pytorch_lightning.utilities import rank_zero_warn
  from flash.core.data.utilities.sort import sorted_alphanumeric
label_desc: Use image node_id 3 for calling a global function with example usage: isdir(path) and returns: os, False