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 avg(self):
      d = torch.tensor(list(self.deque), dtype=torch.float32)
      return d.mean().item()
  
imports: from collections import defaultdict, deque
  import datetime
  import time
  import torch
  import torch.nn.functional
  import torch.distributed
  import errno
  import os
  from .dice_coefficient_loss import multiclass_dice_coeff, build_target
label_desc: Use image node_id 5 for calling the SmoothedValue obj's underlying member method code with example usage: obj.avg() and returns: d