class_docstr: Computes and stores the average and current value
code: def from_json_str(json_str):
      self = AverageMeter()
      self.__dict__.update(json.loads(json_str))
      return self
  
imports: import gzip
  import json
  import logging
  import time
  import warnings
  from collections.abc import Iterable
  from itertools import cycle
  import matplotlib
  import matplotlib.pyplot
  import numpy
  from matplotlib import colors
  from pytorch3d.implicitron.tools.vis_utils import get_visdom_connection
label_desc: Use image node_id 7 for calling the AverageMeter obj's underlying member method code with example usage: obj.from_json_str(json_str) and returns: self