code: def from_json(worker_json: StrJSON) -> "WorkerRunTests":
      return json.loads(worker_json, object_hook=_decode_runtests)
  
imports: import contextlib
  import dataclasses
  import json
  import os
  import subprocess
  from typing import Any
  from test import support
  from .utils import StrPath, StrJSON, TestTuple, TestFilter, FilterTuple, FilterDict
label_desc: Use image node_id 2 for calling the WorkerRunTests obj's underlying member method code with example usage: obj.from_json(worker_json) and returns: json