code: def test_perfect(self, correlation_type):
      actuals = [1, 2, 3, 4, 5, 6, 7, 8]
      preds = [0.1, 0.2, 0.3, 0.4, 0.5, 0.6, 0.7, 0.8]
      metric = correlation_type(0, 10, 0.0, 1.0)
      metric.update_state(actuals, preds)
  
      scipy_value = self.scipy_corr[correlation_type](actuals, preds)[0]
      np.testing.assert_almost_equal(metric.result(), scipy_value)
  
file_path: addons/tensorflow_addons/metrics/tests/streaming_correlations_test.py
imports: import pytest
  import numpy
  import tensorflow
  from scipy import stats
  from tensorflow_addons.metrics import KendallsTauB
  from tensorflow_addons.metrics import KendallsTauC
  from tensorflow_addons.metrics import PearsonsCorrelation
  from tensorflow_addons.metrics import SpearmansRank
  from tensorflow_addons.testing.serialization import check_metric_serialization
label_desc: Use image node_id 3 for calling the TestStreamingCorrelations obj's underlying member method code with example usage: obj.test_perfect(correlation_type) without return types