code: def get_true_dupes(data: dict) -> set:
      duplicates = set()
      for _, pair in groupby(
          sorted(data.items(), key=lambda x: x[1]["unique_id"]),
          key=lambda x: x[1]["unique_id"],
      ):
          pair = list(pair)
          if len(pair) == 2:
              a, b = pair
              duplicates.add(frozenset((a[0], b[0])))
      return duplicates
  
file_path: dedupe/benchmarks/benchmarks/common.py
imports: import csv
  import logging
  import optparse
  import re
  from dataclasses import dataclass
  from itertools import groupby
  from pathlib import Path
label_desc: Use image node_id 4 for calling a global function with example usage: get_true_dupes(data) and returns: duplicates