code: def calculate_metric(self):
      assert len(self.all_preds) == len(self.all_targets)
      return compute_regression_metrics(
          self.all_preds, self.all_targets
      )
  
imports: from pytext.metrics import compute_regression_metrics
  from .channel import ConsoleChannel
  from .metric_reporter import MetricReporter
label_desc: Use image node_id 2 for calling the RegressionMetricReporter obj's underlying member method code with example usage: obj.calculate_metric() and returns: compute_regression_metrics