code: def freeze_record_pair(record_pair: RecordDictPair):
      rec1, rec2 = record_pair
      return (frozenset(rec1.items()), frozenset(rec2.items()))
  
file_path: dedupe/tests/test_labeler.py
imports: import random
  import unittest
  import pytest
  from dedupe import datamodel, labeler
  from dedupe._typing import RecordDictPair
label_desc: Use image node_id 1 for calling a global function with example usage: freeze_record_pair(record_pair) and returns: frozenset,  frozenset