code: def test_mcm_3_classes(dtype):
      actuals = tf.constant(
          [[1, 0, 1], [0, 1, 0], [1, 0, 1], [0, 1, 0]], dtype=dtype
      )
      preds = tf.constant(
          [[1, 0, 0], [0, 1, 1], [1, 0, 0], [0, 1, 1]], dtype=dtype
      )
      # Initialize
      mcm_obj = MultiLabelConfusionMatrix(num_classes=3, dtype=dtype)
      mcm_obj.update_state(actuals, preds)
      # Check results
      check_results(
          mcm_obj,
          [[[2, 0], [0, 2]], [[2, 0], [0, 2]], [[0, 2], [2, 0]]],
      )
  
file_path: addons/tensorflow_addons/metrics/tests/multilabel_confusion_matrix_test.py
imports: import numpy
  import pytest
  import tensorflow
  from tensorflow_addons.metrics import MultiLabelConfusionMatrix
label_desc: Use image node_id 3 for calling a global function with example usage: test_mcm_3_classes(dtype) without return types