code: def test_comparator_interaction(self):
      deduper = dedupe.Dedupe(
          [
              {
                  "field": "type",
                  "variable name": "type",
                  "type": "Categorical",
                  "categories": ["a", "b"],
              },
              {
                  "type": "Interaction",
                  "interaction variables": ["type", "name"],
              },
              {
                  "field": "name",
                  "variable name": "name",
                  "type": "Exact",
              },
          ]
      )
  
      record_pairs = (
          (
              {"name": "steven", "type": "a"},
              {"name": "steven", "type": "b"},
          ),
          (
              {"name": "steven", "type": "b"},
              {"name": "steven", "type": "b"},
          ),
      )
  
      numpy.testing.assert_array_almost_equal(
          deduper.data_model.distances(record_pairs),
          numpy.array([[0, 1, 1, 0, 1], [1, 0, 1, 1, 0]]),
          3,
      )
  
imports: import random
  import unittest
  import numpy
  import scipy.special
  import dedupe
label_desc: Use image node_id 3 for calling the FieldDistances obj's underlying member method code with example usage: obj.test_comparator_interaction() without return types