code: def add_batch_stats(
      self, n_batches, preds, targets, scores, loss, m_input, **contexts
  ):  # contexts object is the dict returned by self.batch_context().
      super().add_batch_stats(
          n_batches, preds, targets, scores, loss, m_input, **contexts
      )
  
      # for preds
      self._add_decoded_answer_batch_stats(m_input, preds, **contexts)
  
      # for targets
      self._add_target_answer_batch_stats(m_input, targets, **contexts)
  
imports: import re
  import string
  from collections import Counter
  from itertools import zip_longest
  from typing import Dict, List
  import numpy
  from pytext.common.constants import Stage
  from pytext.metric_reporters.channel import Channel, ConsoleChannel, FileChannel
  from pytext.metric_reporters.metric_reporter import MetricReporter
  from pytext.metrics import compute_classification_metrics, LabelPrediction
  from pytext.metrics.squad_metrics import SquadMetrics
label_desc: Use image node_id 6 for calling the SquadMetricReporter obj's underlying member method code with example usage: obj.add_batch_stats(n_batches, preds, targets, scores, loss, m_input) without return types