code: def _run_test(
      self,
      y_true,
      y_pred,
      sample_weights,
      class_aggregation,
      num_regressors,
      reference_result,
  ):
      r2 = metrics.R2Score(
          class_aggregation, num_regressors, dtype="float32"
      )
      r2.update_state(y_true, y_pred, sample_weights)
      result = r2.result()
      self.assertAllClose(result, reference_result, atol=1e-6)
  
imports: import numpy
  from absl.testing import parameterized
  from keras import testing
  from keras.metrics import regression_metrics
label_desc: Use image node_id 1 for calling the R2ScoreTest obj's underlying member method code with example usage: obj._run_test(y_true, y_pred, sample_weights, class_aggregation, num_regressors, reference_result) without return types