class_docstr: This :class:`Metric` breaks with the typical ``Metric`` API and just stores values that were
  computed in some fashion outside of a ``Metric``.  If you have some external code that computes
  the metric for you, for instance, you can use this to report the average result using our
  ``Metric`` API.
docstr: Returns
  -------
  The average of all values that were passed to ``__call__``.
code: def get_metric(self, reset=False):
      """
      Returns
      -------
      The average of all values that were passed to ``__call__``.
      """
      average_value = (
          self._total_value / self._count if self._count > 0 else 0
      )
      if reset:
          self.reset()
      return average_value
  
file_path: magnitude/pymagnitude/third_party/allennlp/training/metrics/average.py
imports: from __future__ import division
  from __future__ import absolute_import
  from allennlp.training.metrics.metric import Metric
label_desc: Use image node_id 3 for calling the Average obj's underlying member method code with example usage: obj.get_metric(reset) and returns: average_value