code: def test_numeric_data_only_but_specified_categorical(data):
      num_data = data.select_dtypes(["number"])
      with pytest.warns(UserWarning):
          dd.correlation_matrix(num_data, categorical=True)
  
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 9 for calling a global function with example usage: test_numeric_data_only_but_specified_categorical(data) without return types