code: def __init__(self, name):
      self.name = name
      self._dataset_obj = None
      self._progress_lo = None
      self._progress_hi = None
      self._progress_max = None
      self._progress_sec = None
      self._progress_time = None
      self._reset()
  
imports: import os
  import time
  import hashlib
  import numpy
  import tensorflow
  import dnnlib
  import dnnlib.tflib
  from training import misc
  from training import dataset
label_desc: Use image node_id 1 to create a new MetricBase object  with example: obj = MetricBase(name)