code: def test_set_gp_params():
      optimizer = BayesianOptimization(
          target_func, PBOUNDS, random_state=1
      )
      assert optimizer._gp.alpha == 1e-6
      assert optimizer._gp.n_restarts_optimizer == 5
  
      optimizer.set_gp_params(alpha=1e-2)
      assert optimizer._gp.alpha == 1e-2
      assert optimizer._gp.n_restarts_optimizer == 5
  
      optimizer.set_gp_params(n_restarts_optimizer=7)
      assert optimizer._gp.alpha == 1e-2
      assert optimizer._gp.n_restarts_optimizer == 7
  
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 13 for calling a global function with example usage: test_set_gp_params() without return types