code: def test_figure_categorical_cluster(data):
      cr = dd.correlation_matrix(data, cluster=True, categorical=True)
      assert isinstance(
          cr.show(viz_backend="plotly"), plotly.graph_objs.Figure
      )
      assert isinstance(cr.show(), mpl_plot)
      assert _is_dataframe(cr.association_matrix)
      assert _is_dataframe(cr.association_matrix)
      assert _is_dataframe(cr.viz_data)
      assert isinstance(cr, CorrelationWidget)
      assert_frame_equal(cr.viz_data, cr.cluster_matrix)
  
file_path: data-describe/tests/test_correlation.py
imports: import plotly
  import pytest
  import matplotlib
  from matplotlib.axes import Axes
  from pandas.testing import assert_frame_equal
  import data_describe
  from data_describe.compat import _is_dataframe
  from data_describe.core.correlation import CorrelationWidget
label_desc: Use image node_id 4 for calling a global function with example usage: test_figure_categorical_cluster(data) without return types