code: def test_r2_reset_state():
      actuals = tf.constant([100, 700, 40, 5.7], dtype=tf.float32)
      preds = tf.constant([100, 700, 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)
      # Reset
      reset_obj_state(r2_obj)
      # Check variables
      check_variables(r2_obj, 0.0)
  
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 11 for calling a global function with example usage: test_r2_reset_state() without return types