class_docstr: Measures training stats.
code: def reset(self, timer=False):
      if timer:
          self.iter_timer.reset()
      self.loss.reset()
      self.loss_total = 0.0
      self.lr = None
      self.mb_top1_err.reset()
      self.mb_top5_err.reset()
      self.num_top1_mis = 0
      self.num_top5_mis = 0
      self.num_samples = 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 2 for calling the TrainMeter obj's underlying member method code with example usage: obj.reset(timer) without return types