code: def test_scipy_not_install_error(tmp_path):
      scipy_module = keras_tuner.tuners.bayesian.scipy
      keras_tuner.tuners.bayesian.scipy = None
  
      with pytest.raises(ImportError, match="Please install scipy"):
          keras_tuner.BayesianOptimization(
              hypermodel=build_model,
              directory=tmp_path,
          )
  
      keras_tuner.tuners.bayesian.scipy = scipy_module
  
imports: import math
  import numpy
  import pytest
  import keras_tuner
  from keras_tuner.backend import keras
  from keras_tuner.engine import hyperparameters
  from keras_tuner.engine import trial
  from keras_tuner.tuners import bayesian
label_desc: Use image node_id 2 for calling a global function with example usage: test_scipy_not_install_error(tmp_path) without return types