code: def get_orig_chunked_sample(
      sample: DataSample,
      orig_dataset: GluonCVMotionDataset,
      chunk_subdirs: [] = None,
      sample_map_func=default_chunked_sample_to_orig_id,
      exclude_unchunked=False,
  ):
      if chunk_subdirs:
          chunk_subdir = [
              subdir
              for subdir in chunk_subdirs
              if sample.data_relative_path.startswith(str(subdir))
          ]
          if not chunk_subdir:
              return None
          chunk_subdir = str(chunk_subdir[0])
      else:
          chunk_subdir = Path(sample.data_relative_path).parts[0]
      orig_id = sample_map_func(sample, chunk_subdir, orig_dataset)
      if orig_id not in orig_dataset:
          return None
      orig_sample = orig_dataset[orig_id]
      if exclude_unchunked and Path(
          orig_sample.data_relative_path
      ) == Path(sample.data_relative_path).relative_to(chunk_subdir):
          return None
      return orig_sample
  
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 11 for calling a global function with example usage: get_orig_chunked_sample(sample, orig_dataset, chunk_subdirs, sample_map_func, exclude_unchunked) and returns: orig_sample, None, None, None