code: def default_chunked_sample_to_orig_id(
      chunked_sample, chunk_subdir="", orig_dataset=None
  ):
      id_path = Path(chunked_sample.id)
      chunked_id_stem = id_path.stem
      orig_id = chunk_pat.sub("", chunked_id_stem, count=1)
      orig_id = str(
          id_path.with_name(orig_id + id_path.suffix).relative_to(
              chunk_subdir
          )
      )
      return orig_id
  
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 10 for calling a global function with example usage: default_chunked_sample_to_orig_id(chunked_sample, chunk_subdir, orig_dataset) and returns: orig_id