class_docstr: Store summary metrics (eg. accuracy) during and after a run.
  
  You can manipulate this as if it's a Python dictionary but the keys
  get mangled. .strip() is called on them, so spaces at the beginning
  and end are removed.
class_docstr_tok: ["Store","summary","metrics","(","eg",".","accuracy",")","during","and","after","a","run",".","You","can","manipulate","this","as","if","it","'s","a","Python","dictionary","but","the","keys","get","mangled",".",".strip","(",")","is","called","on","them",",","so","spaces","at","the","beginning","and","end","are","removed","."]
code: def __init__(self, run, summary=None):
      super().__init__()
      self._run = run
      self._h5_path = os.path.join(self._run.dir, DEEP_SUMMARY_FNAME)
      # Lazy load the h5 file
      self._h5 = None
  
      # Mirrored version of self._dict with versions of values that get written
      # to JSON kept up to date by self._root_set() and self._root_del().
      self._json_dict = {}
  
      if summary is not None:
          self._json_dict = summary
  
imports: import json
  import os
  import time
  from wandb_gql import gql
  import wandb
  from wandb import util
  from wandb.apis.internal import Api
  from wandb.sdk import lib
  from wandb.sdk.data_types.utils import val_to_json
label_desc: Use image node_id 1 to create a new Summary object from inherited base classes: SummarySubDict with example: obj = Summary(run, summary)