class_docstr: Measures a scalar value (adapted from Detectron).
code: def __init__(self, window_size):
      self.deque = deque(maxlen=window_size)
      self.total = 0.0
      self.count = 0
  
imports: from collections import deque
  import numpy
  import pycls.core.logging
  import torch
  from pycls.core.config import cfg
  from pycls.core.timer import Timer
label_desc: Use image node_id 1 to create a new ScalarMeter object  with example: obj = ScalarMeter(window_size)