code: def test_categorical_data_only(data):
      cat_data = data[
          [
              c
              for c in data.columns
              if c not in data.select_dtypes(["number"]).columns
          ]
      ]
      cr = dd.correlation_matrix(cat_data, 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.viz_data)
      assert isinstance(cr, CorrelationWidget)
      assert_frame_equal(cr.viz_data, cr.association_matrix)
      assert cat_data.shape[1] == cr.association_matrix.shape[1]
      assert cat_data.shape[1] == cr.association_matrix.shape[0]
      assert cat_data.shape[1] == cr.viz_data.shape[1]
      assert cat_data.shape[1] == cr.viz_data.shape[0]
      assert isinstance(cr.cluster_matrix, type(None))
  
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 7 for calling a global function with example usage: test_categorical_data_only(data) without return types