class_docstr: A simple class to hold metric stats used in calculating metric averages.
  
  Used in _set_avg_session_metrics(). See the comments in that function
  for more details.
  
  Attributes:
    total: int. The sum of the metric measurements seen so far.
    count: int. The number of largest-step measuremens seen so far.
    total_step: int. The sum of the steps at which the measurements were taken
    total_wall_time_secs: float. The sum of the wall_time_secs at
        which the measurements were taken.
class_docstr_tok: ["A","simple","class","to","hold","metric","stats","used","in","calculating","metric","averages",".","Used","in","_set_avg_session_metrics","(",")",".","See","the","comments","in","that","function","for","more","details",".","Attributes",":","total",":","int",".","The","sum","of","the","metric","measurements","seen","so","far",".","count",":","int",".","The","number","of","largest-step","measuremens","seen","so","far",".","total_step",":","int",".","The","sum","of","the","steps","at","which","the","measurements","were","taken","total_wall_time_secs",":","float",".","The","sum","of","the","wall_time_secs","at","which","the","measurements","were","taken","."]
code: def __init__(self):
      self.total = 0
      self.count = 0
      self.total_step = 0
      self.total_wall_time_secs = 0.0
  
imports: import collections
  import dataclasses
  import operator
  import re
  from typing import Optional
  from google.protobuf import struct_pb2
  from tensorboard.data import provider
  from tensorboard.plugins.hparams import api_pb2
  from tensorboard.plugins.hparams import backend_context
  from tensorboard.plugins.hparams import error
  from tensorboard.plugins.hparams import json_format_compat
  from tensorboard.plugins.hparams import metadata
  from tensorboard.plugins.hparams import metrics
  from tensorboard.plugins.hparams import plugin_data_pb2
label_desc: Use image node_id 1 to create a new _MetricStats object  with example: obj = _MetricStats()