code: def test_plot_confusion_matrix(
      precalculated_catboost_classifier_explainer,
  ):
      fig = precalculated_catboost_classifier_explainer.plot_confusion_matrix(
          percentage=False, binary=False
      )
      assert isinstance(fig, go.Figure)
  
      fig = precalculated_catboost_classifier_explainer.plot_confusion_matrix(
          percentage=False, binary=True
      )
      assert isinstance(fig, go.Figure)
  
      fig = precalculated_catboost_classifier_explainer.plot_confusion_matrix(
          percentage=True, binary=False
      )
      assert isinstance(fig, go.Figure)
  
      fig = precalculated_catboost_classifier_explainer.plot_confusion_matrix(
          percentage=True, binary=True
      )
      assert isinstance(fig, go.Figure)
  
      fig = precalculated_catboost_classifier_explainer.plot_confusion_matrix(
          normalize="all"
      )
      assert isinstance(fig, go.Figure)
  
      fig = precalculated_catboost_classifier_explainer.plot_confusion_matrix(
          normalize="observed"
      )
      assert isinstance(fig, go.Figure)
  
      fig = precalculated_catboost_classifier_explainer.plot_confusion_matrix(
          normalize="pred"
      )
      assert isinstance(fig, go.Figure)
  
imports: import pandas
  import numpy
  from pandas.api.types import is_categorical_dtype, is_numeric_dtype
  import plotly.graph_objs
label_desc: Use image node_id 36 for calling a global function with example usage: test_plot_confusion_matrix(precalculated_catboost_classifier_explainer) without return types