code: def test_confusion_matrix(input_values):
      y_true = input_values["y_true"]
      pred = input_values["y_pred"]
      expected_confusion_matrix = input_values[
          "expected_confusion_matrix"
      ]
      confusion_mat = confusion_matrix(y_true=y_true, y_pred=pred)
      assert (
          (confusion_mat.values == expected_confusion_matrix)
          .all()
          .all()
      )
  
imports: import numpy
  import pandas
  import pytest
  from greykite.detection.common.ad_evaluation import confusion_matrix
  from greykite.detection.common.ad_evaluation import f1_score
  from greykite.detection.common.ad_evaluation import informedness_statistic
  from greykite.detection.common.ad_evaluation import matthews_corrcoef
  from greykite.detection.common.ad_evaluation import precision_score
  from greykite.detection.common.ad_evaluation import range_based_precision_score
  from greykite.detection.common.ad_evaluation import range_based_recall_score
  from greykite.detection.common.ad_evaluation import recall_score
  from greykite.detection.common.ad_evaluation import soft_f1_score
  from greykite.detection.common.ad_evaluation import soft_precision_score
  from greykite.detection.common.ad_evaluation import soft_recall_score
label_desc: Use image node_id 7 for calling a global function with example usage: test_confusion_matrix(input_values) without return types