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="{median:.4f} ({global_avg:.4f})"
  ):
      self.deque = deque(maxlen=window_size)
      self.total = 0.0
      self.count = 0
      self.fmt = fmt
  
imports: import datetime
  import os
  import time
  from collections import defaultdict, deque
  import torch
  import torch.distributed
  import torch.nn.functional
label_desc: Use image node_id 1 to create a new SmoothedValue object  with example: obj = SmoothedValue(window_size, fmt)