code: def comparator(field_1: Any, field_2: Any) -> int:
      if field_1 == field_2:
          return 1
      else:
          return 0
  
imports: from typing import Any
  from dedupe import predicates
  from dedupe.variables.base import FieldType
label_desc: Use image node_id 1 for calling the ExactType obj's underlying member method code with example usage: obj.comparator(field_1, field_2) and returns: int, int