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