code: def listfiles(dirname):
      filenames = [
          os.path.join(dirname, x)
          for x in sorted(os.listdir(dirname), key=natural_sort_key)
          if not x.startswith(".")
      ]
      return [file for file in filenames if os.path.isfile(file)]
  
file_path: stable-diffusion-webui/modules/util.py
imports: import os
  import re
  from modules import shared
  from modules.paths_internal import script_path
label_desc: Use image node_id 2 for calling a global function with example usage: listfiles(dirname) and returns: unknown