code: def test_exhausted_search_space(tmp_path):
      class MyTuner(bo_module.BayesianOptimization):
          def run_trial(self, trial, *args, **kwargs):
              hp = trial.hyperparameters
              hp.Boolean("boolean")
              hp.Boolean("boolean2")
              return [np.random.rand()]
  
      tuner = MyTuner(
          alpha=1e-4,
          beta=2.6,
          max_trials=15,
          directory=tmp_path,
      )
      tuner.search()
      assert len(tuner.oracle.trials) == 4
  
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 17 for calling a global function with example usage: test_exhausted_search_space(tmp_path) and returns: list