code: def __init__(self, window_size, stats_keys):
      self.window_size = window_size
      self.smoothed_losses_and_metrics = {
          key: SmoothedValue(window_size) for key in stats_keys
      }
  
file_path: PaddleOCR/ppocr/utils/stats.py
imports: import collections
  import numpy
  import datetime
label_desc: Use image node_id 1 to create a new TrainingStats object from inherited base classes: object with example: obj = TrainingStats(window_size, stats_keys)