code: def test_minimum_window_array_is_kept():
      window_ranges = [1.0, 0.5]
      bounds_transformer = SequentialDomainReductionTransformer(
          minimum_window=window_ranges
      )
      pbounds = {"x": (-0.5, 0.5), "y": (-1.0, 0.0)}
      mutated_optimizer = BayesianOptimization(
          f=black_box_function,
          pbounds=pbounds,
          verbose=0,
          random_state=1,
          bounds_transformer=bounds_transformer,
      )
  
      mutated_optimizer.maximize(
          init_points=2,
          n_iter=10,
      )
      window_widths = np.diff(bounds_transformer.bounds)
      assert np.all(
          np.isclose(
              np.squeeze(np.min(window_widths, axis=0)), window_ranges
          )
      )
  
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 4 for calling a global function with example usage: test_minimum_window_array_is_kept() without return types