code: def test_config(self, correlation_type):
      obj = correlation_type(name=correlation_type.__name__)
      assert obj.name == correlation_type.__name__
      assert obj.dtype == tf.float32
      assert obj.actual_min == 0.0
      assert obj.actual_max == 1.0
  
      # Check save and restore config
      kp_obj2 = correlation_type.from_config(obj.get_config())
      assert kp_obj2.name == correlation_type.__name__
      assert kp_obj2.dtype == tf.float32
      assert kp_obj2.actual_min == 0.0
      assert kp_obj2.actual_max == 1.0
  
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 1 for calling the TestStreamingCorrelations obj's underlying member method code with example usage: obj.test_config(correlation_type) without return types