code: def load_from(cls, data: Dict[str, Any]) -> QueryRun:
      return cls(
          query=data["query"],
          iterations=[
              QueryResult(**iteration)
              for iteration in data["iterations"]
          ],
          start_time=data["start_time"],
      )
  
file_path: arrow-datafusion/benchmarks/compare.py
imports: from __future__ import annotations
  import json
  from dataclasses import dataclass
  from typing import Dict, List, Any
  from pathlib import Path
  from argparse import ArgumentParser
label_desc: Use image node_id 1 for calling the QueryRun obj's underlying member method code with example usage: obj.load_from(cls, data) and returns: cls