code: def generate_files_for_one_sample(
      data_sample: DataSample, generator_list, overwrite
  ):
      if os.path.isabs(data_sample.data_relative_path):
          logging.error(
              "Relative path of sample id: {} is absolute and so we cannot add to the cache, skipping."
              " Path: {}".format(
                  data_sample.id, data_sample.data_relative_path
              )
          )
          return
      for gen in generator_list:
          try:
              gen(data_sample, overwrite)
          except Exception as e:
              try:
                  gen(data_sample, True)
              except Exception as e:
                  logging.exception(
                      "Failed: {}".format(data_sample.data_path)
                  )
                  return
  
file_path: gluon-cv/gluoncv/torch/data/gluoncv_motion_dataset/dataset_pre_processor.py
imports: import os
  import random
  import logging
  import ray
  from pathlib import Path
  from tqdm import tqdm
  from .io.video_io import VideoFrameReader, write_img_files_to_vid_ffmpeg, resize_and_write_video_ffmpeg, convert_vid_ffmpeg
  from .utils.serialization_utils import save_json
  from .dataset import GluonCVMotionDataset, DataSample, FieldNames, get_resized_video_location, get_vis_gt_location, get_vis_thumb_location, get_vis_video_location
label_desc: Use image node_id 7 for calling a global function with example usage: generate_files_for_one_sample(data_sample, generator_list, overwrite) without return types