code: def _mark_pair(
      deduper: dedupe.api.ActiveMatching, labeled_pair: LabeledPair
  ) -> None:
      record_pair, label = labeled_pair
      examples: TrainingData = {"distinct": [], "match": []}
      if label == "unsure":
          # See https://github.com/dedupeio/dedupe/issues/984 for reasoning
          examples["match"].append(record_pair)
          examples["distinct"].append(record_pair)
      else:
          # label is either "match" or "distinct"
          examples[label].append(record_pair)
      deduper.mark_pairs(examples)
  
imports: from __future__ import annotations
  import collections
  import itertools
  import random
  import sys
  import warnings
  from typing import Iterator, Tuple, overload
  import numpy
  import dedupe
  from dedupe._typing import DataInt, DataStr, Literal, RecordDict, RecordDictPair, RecordID, TrainingData
  from dedupe.canonical import getCanonicalRep
  from dedupe.core import unique
label_desc: Use image node_id 5 for calling a global function with example usage: _mark_pair(deduper, labeled_pair) without return types