def METHOD_NAME(client, drop, pattern):
    X = DataFrame({"chars": ["c", "b", "d"], "int": [2, 1, 0]})
    X = dask_cudf.from_cudf(X, npartitions=2)
    with pytest.raises(ValueError, match=pattern):
        OneHotEncoder(sparse=False, drop=drop).fit(X)