class_docstr: A grouping of AverageMeters.
docstr: Returns a dict of average and most recent values for each metric.
docstr_tok: ["Returns","a","dict","of","average","and","most","recent","values","for","each","metric","."]
code: def summary(self):
      """Returns a dict of average and most recent values for each metric."""
      stats = {BATCH_COUNT: self._batch_count, NUM_SAMPLES: self.n}
      for metric, meter in self._meters.items():
          stats[str(metric)] = meter.avg
          stats["last_" + str(metric)] = meter.val
      return stats
  
imports: import collections
  from contextlib import closing, contextmanager
  import logging
  import numpy
  import socket
  import time
label_desc: Use image node_id 3 for calling the AverageMeterCollection obj's underlying member method code with example usage: obj.summary() and returns: stats