code: def test_config():
      # mcc object
      mcc1 = MatthewsCorrelationCoefficient(num_classes=1)
      assert mcc1.num_classes == 1
      assert mcc1.dtype == tf.float32
      # check configure
      mcc2 = MatthewsCorrelationCoefficient.from_config(
          mcc1.get_config()
      )
      assert mcc2.num_classes == 1
      assert mcc2.dtype == tf.float32
  
file_path: addons/tensorflow_addons/metrics/tests/matthews_correlation_coefficient_test.py
imports: import tensorflow
  import numpy
  from tensorflow_addons.metrics import MatthewsCorrelationCoefficient
  from sklearn.metrics import matthews_corrcoef
label_desc: Use image node_id 1 for calling a global function with example usage: test_config() without return types