code: def test_binary_classes():
      gt_label = tf.constant(
          [[0.0, 1.0], [0.0, 1.0], [0.0, 1.0], [1.0, 0.0]],
          dtype=tf.float32,
      )
      preds = tf.constant(
          [[0.0, 1.0], [1.0, 0.0], [0.0, 1.0], [0.0, 1.0]],
          dtype=tf.float32,
      )
      # Initialize
      mcc = MatthewsCorrelationCoefficient(2)
      # Update
      mcc.update_state(gt_label, preds)
      # Check results
      check_results(mcc, [-0.33333334])
  
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 3 for calling a global function with example usage: test_binary_classes() without return types