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 update(self, value, num=1):
      self.deque.append(value)
      self.count += num
      self.total += value * num
  
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 2 for calling the SmoothedValue obj's underlying member method code with example usage: obj.update(value, num) without return types