code: def get_video_files_in_dir(directory):
      out = []
      for item in os.listdir(directory):
          try:
              name, ext = item.split(".")
          except:
              continue
          if name and ext:
              if ext in VIDEO_EXTENSIONS:
                  out.append(item)
      return out
  
imports: import os
  import streamlit
label_desc: Use image node_id 1 for calling a global function with example usage: get_video_files_in_dir(directory) and returns: out