code: def test_description_exceptions():
      df = pd.DataFrame(
          {"a": np.empty(100), "b": pd.Series(np.arange(100) % 10)},
          dtype="category",
      )
      with pytest.raises(ValueError):
          Description(df, stats=["unknown"])
      with pytest.raises(ValueError):
          Description(df, alpha=-0.3)
      with pytest.raises(ValueError):
          Description(df, percentiles=[0, 100])
      with pytest.raises(ValueError):
          Description(df, percentiles=[10, 20, 30, 10])
      with pytest.raises(ValueError):
          Description(df, ntop=-3)
      with pytest.raises(ValueError):
          Description(df, numeric=False, categorical=False)
  
file_path: statsmodels/statsmodels/stats/tests/test_descriptivestats.py
imports: import numpy
  from numpy.testing import assert_almost_equal, assert_equal
  import pandas
  import scipy.stats
  import pytest
  from statsmodels.iolib.table import SimpleTable
  from statsmodels.stats.descriptivestats import Description, describe, sign_test
label_desc: Use image node_id 3 for calling a global function with example usage: test_description_exceptions() without return types