class_docstr: Measures testing stats.
code: def get_iter_stats(self, cur_epoch, cur_iter):
      mem_usage = gpu_mem_usage()
      iter_stats = {
          "epoch": "{}/{}".format(cur_epoch + 1, cfg.OPTIM.MAX_EPOCH),
          "iter": "{}/{}".format(cur_iter + 1, self.epoch_iters),
          "time_avg": self.iter_timer.average_time,
          "time_diff": self.iter_timer.diff,
          "top1_err": self.mb_top1_err.get_win_median(),
          "top5_err": self.mb_top5_err.get_win_median(),
          "mem": int(np.ceil(mem_usage)),
      }
      return iter_stats
  
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 6 for calling the TestMeter obj's underlying member method code with example usage: obj.get_iter_stats(cur_epoch, cur_iter) and returns: iter_stats