code: def read_training(training_file: TextIO) -> Any:
      """
      Read training from previously built training data file object
  
      Args:
          training_file: file object containing the training data
  
      Returns:
          A dictionary with two keys, `match` and `distinct`. See the inverse,
          :func:`write_training`.
      """
      return json.load(training_file, object_hook=_from_json)
  
file_path: dedupe/dedupe/serializer.py
imports: import json
  from typing import Any, Iterator, TextIO
  from dedupe._typing import TrainingData
label_desc: Use image node_id 3 for calling a global function with example usage: read_training(training_file) and returns: json