code: def save_img_labels_filelist(
      img_paths, img_labels, out_image_filepath, out_label_filepath
  ):
      # Remove the split .npy filelist if they exist and resave them.
      if g_pathmgr.exists(out_image_filepath):
          g_pathmgr.rm(out_image_filepath)
      save_file(img_paths, out_image_filepath)
      print(f"Saved: {out_image_filepath}")
  
      if g_pathmgr.exists(out_label_filepath):
          g_pathmgr.rm(out_label_filepath)
      save_file(img_labels, out_label_filepath)
      print(f"Saved: {out_label_filepath}")
      print("Saved!!")
  
file_path: vissl/extra_scripts/convert_folder_to_filelist.py
imports: import argparse
  import os
  from iopath.common.file_io import g_pathmgr
  from vissl.utils.env import setup_path_manager
  from vissl.utils.io import save_file
label_desc: Use image node_id 2 for calling a global function with example usage: save_img_labels_filelist(img_paths, img_labels, out_image_filepath, out_label_filepath) without return types