code: def parse_images_dir(dataset_dir, recursive=True):
      """Parses the contents of the given directory of images.
  
      Args:
          dataset_dir: the dataset directory
          recursive (True): whether to recursively traverse subdirectories
  
      Returns:
          a list of image paths
      """
      filepaths = etau.list_files(
          dataset_dir, abs_paths=True, recursive=recursive
      )
      return [p for p in filepaths if etai.is_image_mime_type(p)]
  
imports: import logging
  import multiprocessing.dummy
  import requests
  import os
  import pathlib
  import urllib
  import eta.core.image
  import eta.core.serial
  import eta.core.utils
  import eta.core.video
  import fiftyone.core.fields
  import fiftyone.core.labels
  import fiftyone.core.utils
label_desc: Use image node_id 1 for calling a global function with example usage: parse_images_dir(dataset_dir, recursive) and returns: unknown