code: def test_sklearn_not_install_error(tmp_path):
      sklearn_module = keras_tuner.tuners.sklearn_tuner.sklearn
      keras_tuner.tuners.sklearn_tuner.sklearn = None
  
      with pytest.raises(ImportError, match="Please install sklearn"):
          keras_tuner.SklearnTuner(
              oracle=keras_tuner.oracles.BayesianOptimizationOracle(
                  objective=keras_tuner.Objective("score", "max"),
                  max_trials=10,
              ),
              hypermodel=build_model,
              directory=tmp_path,
          )
  
      keras_tuner.tuners.sklearn_tuner.sklearn = sklearn_module
  
imports: import numpy
  import pandas
  import pytest
  from sklearn import datasets
  from sklearn import decomposition
  from sklearn import ensemble
  from sklearn import linear_model
  from sklearn import metrics
  from sklearn import model_selection
  from sklearn import neighbors
  from sklearn import pipeline
  import keras_tuner
label_desc: Use image node_id 11 for calling a global function with example usage: test_sklearn_not_install_error(tmp_path) without return types