code: def test_conf_mat_missing_values_without_classes(mock_run):
      _ = mock_run(settings={"mode": "offline"})
      y_true = [2, 4, 2, 4, 4]
      y_pred = [4, 2, 2, 4, 6]
      conf_mat = confusion_matrix(preds=y_pred, y_true=y_true)
      assert conf_mat.table.data[0] == ["Class_1", "Class_1", 1]
      assert conf_mat.table.data[1] == ["Class_1", "Class_2", 1]
      assert conf_mat.table.data[2] == ["Class_1", "Class_3", 0]
  
      assert conf_mat.table.data[3] == ["Class_2", "Class_1", 1]
      assert conf_mat.table.data[4] == ["Class_2", "Class_2", 1]
      assert conf_mat.table.data[5] == ["Class_2", "Class_3", 1]
  
      assert conf_mat.table.data[6] == ["Class_3", "Class_1", 0]
      assert conf_mat.table.data[7] == ["Class_3", "Class_2", 0]
      assert conf_mat.table.data[8] == ["Class_3", "Class_3", 0]
  
file_path: wandb/tests/pytest_tests/unit_tests/test_plot.py
imports: import pytest
  from sklearn.naive_bayes import MultinomialNB
  from wandb.plot import confusion_matrix, line_series, pr_curve, roc_curve
label_desc: Use image node_id 6 for calling a global function with example usage: test_conf_mat_missing_values_without_classes(mock_run) without return types