code: def get_files_to_inspect(
      dups_map,
      dataset,
      thumb_to_sample_id,
      orig_dataset=None,
      id_map=None,
  ):
      inspect_map = defaultdict(list)
  
      def get_samp(sid):
          sid = thumb_to_sample_id[sid]
          if orig_dataset and id_map and sid in id_map:
              return orig_dataset[id_map[sid]]
          else:
              return dataset[sid]
  
      for sid, v in dups_map.items():
          samp = get_samp(sid)
          for dup_sid, score in v:
              dup_samp = get_samp(dup_sid)
              len_diff = abs(len(samp) - len(dup_samp))
              if len_diff > 10:
                  inspect_map[sid].append((dup_sid, score, len_diff))
      return inspect_map
  
file_path: gluon-cv/gluoncv/torch/data/gluoncv_motion_dataset/ingestion/duplicate_remover.py
imports: import logging
  from pathlib import Path, PosixPath
  from collections import defaultdict
  import tqdm
  from ..dataset import GluonCVMotionDataset, get_vis_thumb_location
  from ..utils.ingestion_utils import get_chunked_id_map
label_desc: Use image node_id 7 for calling a global function with example usage: get_files_to_inspect(dups_map, dataset, thumb_to_sample_id, orig_dataset, id_map) and returns: inspect_map, orig_dataset, dataset