code: def list_subdirs(folder: PATH_TYPE) -> List[str]:
      """List the subdirectories of a given directory.
  
      Args:
          folder: The directory to scan.
  
      Returns:
          The list of subdirectories.
  
      """
      return list(
          sorted_alphanumeric(
              d.name for d in os.scandir(str(folder)) if d.is_dir()
          )
      )
  
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 4 for calling a global function with example usage: list_subdirs(folder) and returns: list