code: def test_suggest_at_random():
      util = UtilityFunction(kind="poi", kappa=5, xi=0)
      optimizer = BayesianOptimization(
          target_func, PBOUNDS, random_state=1
      )
  
      for _ in range(50):
          sample = optimizer.space.params_to_array(
              optimizer.suggest(util)
          )
          assert len(sample) == optimizer.space.dim
          assert all(sample >= optimizer.space.bounds[:, 0])
          assert all(sample <= optimizer.space.bounds[:, 1])
  
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 5 for calling a global function with example usage: test_suggest_at_random() without return types