docstr: update
docstr_tok: ["update"]
code: def update(self, val, n=1):
      """update"""
      self.val = val
      self.sum += val * n
      self.count += n
      self.avg = self.sum / self.count
  
imports: import logging
  import os
  import imghdr
  import cv2
  import random
  import numpy
  import paddle
  import importlib.util
  import sys
  import subprocess
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