code: def test_scoring_streaming(self, correlation_type):
      actuals = [12, 2, 1, 12, 2]
      preds = [1, 4, 7, 1, 0]
  
      metric = correlation_type(0, 13, 0, 8)
      for actual, pred in zip(actuals, preds):
          metric.update_state([[actual]], [[pred]])
  
      scipy_value = self.scipy_corr[correlation_type](actuals, preds)[0]
      np.testing.assert_almost_equal(
          metric.result(), scipy_value, decimal=2
      )
  
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 5 for calling the TestStreamingCorrelations obj's underlying member method code with example usage: obj.test_scoring_streaming(correlation_type) without return types