class_docstr: Computes and stores the average and current value
code: def update(self, val):
      if self.val is None:
          self.avg = val
      else:
          self.avg = self.avg * self.momentum + val * (
              1 - self.momentum
          )
      self.val = val
  
imports: import os
  import argparse
  import time
  import numpy
  import torch
  import torch.nn
  import torch.optim
label_desc: Use image node_id 3 for calling the RunningAverageMeter obj's underlying member method code with example usage: obj.update(val) without return types