code: def from_json(worker_json: StrJSON) -> "TestResult":
      return json.loads(worker_json, object_hook=_decode_test_result)
  
imports: import dataclasses
  import json
  from typing import Any
  from .utils import StrJSON, TestName, FilterTuple, format_duration, normalize_test_name, print_warning
label_desc: Use image node_id 9 for calling the TestResult obj's underlying member method code with example usage: obj.from_json(worker_json) and returns: json