code: def setup(self, kwargs):
      data_1 = common.load_data(self.data_1_file)
      data_2 = common.load_data(self.data_2_file)
  
      self.data = (data_1, data_2)
      training_pairs = dedupe.training_data_link(
          data_1, data_2, "unique_id", 5000
      )
      self.training_pairs_filelike = io.StringIO()
      dedupe.serializer.write_training(
          training_pairs, self.training_pairs_filelike
      )
      self.training_pairs_filelike.seek(0)
  
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 1 for calling the Matching obj's underlying member method code with example usage: obj.setup(kwargs) without return types