class_docstr: Struct with metadata about a script execution.
class_docstr_tok: ["Struct","with","metadata","about","a","script","execution","."]
code: def to_json(self) -> Mapping[str, Any]:
      return asdict(self)
  
imports: import getpass
  import sys
  from dataclasses import asdict, dataclass, replace
  from datetime import datetime
  from pathlib import Path
  from platform import python_version
  from socket import gethostname
  from typing import Any, Mapping, Sequence, Tuple
  import numpy
  import psutil
  import tensorflow
  from cpuinfo import get_cpu_info
  from git.exc import InvalidGitRepositoryError
  from git.repo import Repo
  from tensorflow.python.client import device_lib
label_desc: Use image node_id 4 for calling the BenchmarkMetadata obj's underlying member method code with example usage: obj.to_json() and returns: asdict