code: def _from_json(json_object: Any) -> Any:
      if "__class__" in json_object:
          if json_object["__class__"] == "frozenset":
              return frozenset(json_object["__value__"])
          if json_object["__class__"] == "tuple":
              return tuple(json_object["__value__"])
      return json_object
  
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 1 for calling a global function with example usage: _from_json(json_object) and returns: json_object, frozenset, tuple