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