class_docstr: Computes and stores the average and current value
class_docstr_tok: ["Computes","and","stores","the","average","and","current","value"]
code: def update(self, val, n=1):
      self.val = val
      self.max_val = max(self.max_val, val)
      self.sum += val * n
      self.count += n
      self.avg = self.sum / self.count
  
file_path: DALI/dali/test/python/test_RN50_data_fw_iterators.py
imports: from nvidia.dali.pipeline import Pipeline
  import nvidia.dali.ops
  import nvidia.dali.types
  import argparse
  import time
label_desc: Use image node_id 3 for calling the AverageMeter obj's underlying member method code with example usage: obj.update(val, n) without return types