code: def test_confusion_matrix_normalize(
      normalize, expected_results, client
  ):
      y_test = da.from_array(cp.array([0, 1, 2] * 6))
      y_pred = da.from_array(
          cp.array(list(chain(*permutations([0, 1, 2]))))
      )
      cm = confusion_matrix(y_test, y_pred, normalize=normalize)
      cp.testing.assert_allclose(cm, cp.array(expected_results))
  
file_path: cuml/python/cuml/tests/dask/test_dask_metrics.py
imports: import dask.array
  from cuml.dask.metrics import confusion_matrix
  from cuml.testing.utils import stress_param, generate_random_labels
  from sklearn.metrics import confusion_matrix
  import pytest
  from cuml.internals.safe_imports import gpu_only_import
  from itertools import chain, permutations
  from cuml.internals.safe_imports import cpu_only_import
label_desc: Use image node_id 4 for calling a global function with example usage: test_confusion_matrix_normalize(normalize, expected_results, client) without return types