code: def test_categorical_data_only_but_specified_numeric(data):
      num_data = data.select_dtypes(["number"])
      cat_data = data[
          [c for c in data.columns if c not in num_data.columns]
      ]
      with pytest.raises(ValueError):
          dd.correlation_matrix(cat_data)
  
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 8 for calling a global function with example usage: test_categorical_data_only_but_specified_numeric(data) without return types