code: def make_report(data, clustering):
      true_dupes = get_true_dupes(data)
      predicted_dupes = set(frozenset(pair) for pair, _ in clustering)
      return common.Report.from_scores(true_dupes, predicted_dupes)
  
file_path: dedupe/benchmarks/benchmarks/canonical_matching.py
imports: import io
  import os
  import time
  import dedupe
  from benchmarks import common
label_desc: Use image node_id 2 for calling a global function with example usage: make_report(data, clustering) and returns: common