code: def test_adjr2():
      actuals = tf.constant([10, 600, 3, 9.77], dtype=tf.float32)
      preds = tf.constant([1, 340, 40, 5.7], dtype=tf.float32)
      actuals = tf.cast(actuals, dtype=tf.float32)
      preds = tf.cast(preds, dtype=tf.float32)
      # Initialize
      adjr2_obj = initialize_vars(num_regressors=2)
      update_obj_states(adjr2_obj, actuals, preds)
      # Check result
      check_results(adjr2_obj, 0.2128982)
  
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 15 for calling a global function with example usage: test_adjr2() without return types