code: def list_images(
      DIR: str,
      recursive: bool = True,
      use_fullpath: bool = False,
      verbose=True,
      every: int = 1000,
  ) -> List[str]:
      r"""
          Lists all image files within a specific directory (and sub-directories if `recursive=True`)
  
      Args:
          DIR (str): Directory to search for image files
          recursive (bool): Indicate whether to search all subdirectories as well (default = False)
          use_fullpath (bool): Include full filepaths in the returned list (default = False)
  
      Returns:
          image_files (list): List of names (or full filepaths if `use_fullpath=True`) of the image files
  
      """
      return listdir(
          DIR=DIR,
          recursive=recursive,
          use_fullpath=use_fullpath,
          ext=_acceptable_image_formats,
          verbose=verbose,
          every=every,
      )
  
file_path: caer/caer/path/paths.py
imports: import os
  from time import time
  from ..annotations import List, Union, Optional, Tuple
label_desc: Use image node_id 1 for calling a global function with example usage: list_images(DIR, recursive, use_fullpath, verbose, every) and returns: listdir