class_docstr: Track a series of values and provide access to smoothed values over a
  window or the global series average.
class_docstr_tok: ["Track","a","series","of","values","and","provide","access","to","smoothed","values","over","a","window","or","the","global","series","average","."]
code: def __init__(self, window_size=20, fmt=None):
      if fmt is None:
          fmt = "{median:.4f} ({global_avg:.4f})"
      self.deque = deque(maxlen=window_size)
      self.total = 0.0
      self.count = 0
      self.fmt = fmt
  
imports: from collections import defaultdict, deque
  import datetime
  import json
  import logging
  import time
  import torch
  import dinov2.distributed
label_desc: Use image node_id 1 to create a new SmoothedValue object  with example: obj = SmoothedValue(window_size, fmt)