code: def update(self, stats):
      for k, v in stats.items():
          if k not in self.smoothed_losses_and_metrics:
              self.smoothed_losses_and_metrics[k] = SmoothedValue(
                  self.window_size
              )
          self.smoothed_losses_and_metrics[k].add_value(v)
  
file_path: PaddleOCR/ppocr/utils/stats.py
imports: import collections
  import numpy
  import datetime
label_desc: Use image node_id 2 for calling the TrainingStats obj's underlying member method code with example usage: obj.update(stats) without return types