code: def test_invalid_handle_input():
      enc = dask_ml.preprocessing.OneHotEncoder(handle_unknown="ignore")
      with pytest.raises(NotImplementedError):
          enc.fit(dX)
  
      enc = dask_ml.preprocessing.OneHotEncoder(
          handle_unknown="invalid"
      )
      with pytest.raises(ValueError):
          enc.fit(dX)
  
imports: import dask.array
  import dask.dataframe
  import numpy
  import packaging.version
  import pandas
  import pytest
  import scipy.sparse
  import sklearn.preprocessing
  import dask_ml.preprocessing
  from dask_ml._compat import DASK_2_20_0, PANDAS_VERSION
  from dask_ml.utils import assert_estimator_equal
label_desc: Use image node_id 3 for calling a global function with example usage: test_invalid_handle_input() without return types