code: def test_add_intercept_raises_chunks():
      X = da.random.uniform(size=(10, 4), chunks=(4, 2))
  
      with pytest.raises(ValueError) as m:
          add_intercept(X)
  
      assert m.match("Chunking is only allowed")
  
imports: import dask.array
  import dask.dataframe
  import numpy
  import numpy.linalg
  import pandas
  import pytest
  import sklearn.linear_model
  from dask.dataframe.utils import assert_eq
  from dask_glm.regularizers import Regularizer
  from sklearn.pipeline import make_pipeline
  import dask_ml.linear_model
  from dask_ml.datasets import make_classification, make_counts, make_regression
  from dask_ml.linear_model import LinearRegression, LogisticRegression, PoissonRegression
  from dask_ml.linear_model.utils import add_intercept
  from dask_ml.model_selection import GridSearchCV
label_desc: Use image node_id 16 for calling a global function with example usage: test_add_intercept_raises_chunks() without return types