class_docstr: Class for global accumulation state. add_stats gets reduced.
code: def reset(self):
      if self.prev_stats is not None:
          for _, v in self.prev_stats.items():
              v.reset()
  
imports: import copy
  import dataclasses
  import logging
  import torch
  import moolib
label_desc: Use image node_id 5 for calling the GlobalStatsAccumulator obj's underlying member method code with example usage: obj.reset() without return types