code: def test_r2_worst_score():
      actuals = tf.constant([10, 600, 4, 9.77], dtype=tf.float32)
      preds = tf.constant([1, 70, 40, 5.7], dtype=tf.float32)
      actuals = tf.cast(actuals, dtype=tf.float32)
      preds = tf.cast(preds, dtype=tf.float32)
      # Initialize
      r2_obj = initialize_vars()
      # Update
      update_obj_states(r2_obj, actuals, preds)
      # Check results
      check_results(r2_obj, -0.073607)
  
imports: import numpy
  import pytest
  import tensorflow
  from sklearn.metrics import r2_score
  from tensorflow_addons.metrics import RSquare
  from tensorflow_addons.metrics.r_square import _VALID_MULTIOUTPUT
label_desc: Use image node_id 8 for calling a global function with example usage: test_r2_worst_score() without return types