code: def aggregate_scores(self, batch_scores: Tensor):
      batch_scores = batch_scores.view(-1, batch_scores.size(-1))
      self.all_scores.append(batch_scores.tolist())
  
file_path: pytext/pytext/metric_reporters/calibration_metric_reporter.py
imports: from typing import Any, Dict, List
  from pytext.config import PyTextConfig
  from pytext.metric_reporters.channel import Channel, ConsoleChannel
  from pytext.metrics import LabelPrediction
  from pytext.metrics.calibration_metrics import compute_calibration
  from torch import Tensor
  from .metric_reporter import MetricReporter
label_desc: Use image node_id 5 for calling the CalibrationMetricReporter obj's underlying member method code with example usage: obj.aggregate_scores(batch_scores) without return types