code: def get_all_file_path_from_directory(directory):
      """
      Extract all the file path for one directory
      Parameters:
          directory - directory to be extracted
      Returns:
          a list contains the path for all the files in
          input directory
      """
  
      filepaths = []
      for root, dirs, files in os.walk(directory):
          for file in files:
              file_path = os.path.join(root, file)
              filepaths.append(file_path)
  
      return filepaths
  
imports: import os
  from towhee.utils.pil_utils import PILImage
label_desc: Use image node_id 2 for calling a global function with example usage: get_all_file_path_from_directory(directory) and returns: filepaths