code: def get_chunked_id_map(
      chunked_dataset, orig_dataset, *args, **kwargs
  ):
      id_map = {}
      for chunked_id, sample in chunked_dataset.samples:
          orig_sample = get_orig_chunked_sample(
              sample, orig_dataset, *args, **kwargs
          )
          orig_id = orig_sample.id
          if orig_id is not None:
              id_map[chunked_id] = orig_id
      return id_map
  
imports: import glob
  import numpy
  import os
  import re
  import tempfile
  from addict import Dict
  from collections import defaultdict
  from pathlib import Path
  from subprocess import call
  import cv2
  from ..dataset import GluonCVMotionDataset, DataSample, FieldNames, get_resized_video_location
  from ..io.video_io import VideoFrameReader, VideoSortedFolderReader, cmd_with_addn_args, FFMPEG_FOURCC
label_desc: Use image node_id 12 for calling a global function with example usage: get_chunked_id_map(chunked_dataset, orig_dataset) and returns: id_map