code: def test_define_wrong_transformer():
      with pytest.raises(TypeError):
          optimizer = BayesianOptimization(
              target_func,
              PBOUNDS,
              random_state=np.random.RandomState(1),
              bounds_transformer=3,
          )
  
imports: import pytest
  import numpy
  from bayes_opt import UtilityFunction
  from bayes_opt import BayesianOptimization
  from bayes_opt.logger import ScreenLogger
  from bayes_opt.event import Events, DEFAULT_EVENTS
  from bayes_opt.util import NotUniqueError
  import pickle
  import os
label_desc: Use image node_id 15 for calling a global function with example usage: test_define_wrong_transformer() without return types