code: def test_exceeded_bounds():
      """Raises Value Error if the bounds are exceeded."""
      window_ranges = [1.01, 0.72]
      bounds_transformer = SequentialDomainReductionTransformer(
          minimum_window=window_ranges
      )
      pbounds = {"x": (-0.5, 0.5), "y": (-0.7, 0.0)}
      with pytest.raises(ValueError):
          _ = BayesianOptimization(
              f=black_box_function,
              pbounds=pbounds,
              verbose=0,
              random_state=1,
              bounds_transformer=bounds_transformer,
          )
  
file_path: BayesianOptimization/tests/test_seq_domain_red.py
imports: import numpy
  import pytest
  from bayes_opt import SequentialDomainReductionTransformer
  from bayes_opt import BayesianOptimization
  from bayes_opt.target_space import TargetSpace
label_desc: Use image node_id 6 for calling a global function with example usage: test_exceeded_bounds() without return types