code: def __init__(self):
      self.reset()
  
imports: import os
  from math import ceil
  import numpy
  import torch
  import torch.nn.functional
  from torch import nn
label_desc: Use image node_id 1 to create a new AverageMeter object  with example: obj = AverageMeter()