code: def test_r2_tfa_comparison(
      self, class_aggregation, num_regressors, result
  ):
      y_true = [[0.0, 0.0, 1.0], [0.0, 1.0, 0.0], [1.0, 0.0, 0.0]]
      y_pred = [[0.4, 0.9, 1.6], [0.1, 1.2, 0.6], [1.5, 0.8, 0.6]]
      sample_weights = [0.8, 0.1, 0.4]
      self._run_test(
          y_true,
          y_pred,
          sample_weights,
          class_aggregation=class_aggregation,
          num_regressors=num_regressors,
          reference_result=result,
      )
  
imports: import numpy
  from absl.testing import parameterized
  from keras import testing
  from keras.metrics import regression_metrics
label_desc: Use image node_id 4 for calling the R2ScoreTest obj's underlying member method code with example usage: obj.test_r2_tfa_comparison(class_aggregation, num_regressors, result) without return types