code: def align_times_to_framerate(time_pairs, fps):
      period = 1000 / fps
      aligned_pairs = []
      for time_pair in time_pairs:
          aligned_pair = tuple(
              round(round(t / period) * period) for t in time_pair
          )
          aligned_pairs.append(aligned_pair)
      return aligned_pairs
  
file_path: gluon-cv/gluoncv/torch/data/gluoncv_motion_dataset/ingestion/video_chunker.py
imports: import logging
  import os
  import pickle
  import tqdm
  from pathlib import Path
  from ..dataset import GluonCVMotionDataset, DataSample, FieldNames, SplitNames
  from ..utils.ingestion_utils import crop_video, process_dataset_splits, crop_fn_ffmpeg, crop_fn_frame_folder
label_desc: Use image node_id 3 for calling a global function with example usage: align_times_to_framerate(time_pairs, fps) and returns: aligned_pairs