code: def set_from_dict(d):
      vals = []
      for sid, v in d.items():
          if v:
              vals.append(sid)
          for x in v:
              dup_sid = x[0]
              vals.append(dup_sid)
      return set(vals)
  
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 3 for calling a global function with example usage: set_from_dict(d) and returns: set