code: def get_local_output_filepaths(input_files, dest_dir):
      """
      If we have copied the files to local disk as specified in the config, we
      return those local paths. Otherwise return the original paths.
      """
      output_files = []
      for item in input_files:
          if isinstance(item, list):
              out = get_local_output_filepaths(item, dest_dir)
          else:
              out = get_local_path(item, dest_dir)
          output_files.append(out)
      return output_files
  
imports: import json
  import logging
  import os
  from typing import List
  import numpy
  from iopath.common.file_io import g_pathmgr
  from vissl.data.datasets import get_coco_imgs_labels_info, get_voc_images_labels_info
  from vissl.utils.misc import get_json_data_catalog_file
  from vissl.utils.slurm import get_slurm_dir
label_desc: Use image node_id 2 for calling a global function with example usage: get_local_output_filepaths(input_files, dest_dir) and returns: output_files