class_docstr: Manages reporting of metrics.
class_docstr_tok: ["Manages","reporting","of","metrics","."]
code: def add(self, step, key, value):
      self._last_step = step
      self._metrics[key].append(value)
      if len(self._metrics[key]) > self._smooth_interval:
          self._metrics[key].popleft()
      if self._last_step % self._log_interval == 0:
          if self._writer:
              self._writer.add(step, key, value)
  
file_path: studio/studio/torch/summary.py
imports: import collections
  import six
  import time
label_desc: Use image node_id 3 for calling the Reporter obj's underlying member method code with example usage: obj.add(step, key, value) without return types