code: def getVideoFilesFromFolder(dirPath):
      types = (
          dirPath + os.sep + "*.webm",
          dirPath + os.sep + "*.avi",
          dirPath + os.sep + "*.mkv",
          dirPath + os.sep + "*.mp4",
          dirPath + os.sep + "*.mp3",
          dirPath + os.sep + "*.flac",
          dirPath + os.sep + "*.ogg",
      )  # the tuple of file types
      files_grabbed = []
      for files in types:
          files_grabbed.extend(glob.glob(files))
      return files_grabbed
  
label_desc: Use image node_id 1 for calling a global function with example usage: getVideoFilesFromFolder(dirPath) and returns: files_grabbed