code: def test_gfo_opt_wrapper_0(Optimizer, search_space, objective):
      search_space = search_space
      objective_function = objective
  
      n_iter = 10
      s_space = SearchSpace(search_space)
  
      initialize = {"vertices": 2}
      constraints = []
      pass_through = {}
      callbacks = None
      catch = None
      max_score = None
      early_stopping = None
      random_state = None
      memory = None
      memory_warm_start = None
      verbosity = ["progress_bar", "print_results", "print_times"]
  
      opt = Optimizer()
  
      opt.setup_search(
          objective_function=objective_function,
          s_space=s_space,
          n_iter=n_iter,
          initialize=initialize,
          constraints=constraints,
          pass_through=pass_through,
          callbacks=callbacks,
          catch=catch,
          max_score=max_score,
          early_stopping=early_stopping,
          random_state=random_state,
          memory=memory,
          memory_warm_start=memory_warm_start,
          verbosity=verbosity,
      )
      opt.max_time = None
      opt.search(nth_process=0, p_bar=tqdm(total=n_iter))
  
      assert opt.best_score == objective_function(opt.best_para)
  
file_path: Hyperactive/tests/test_optimizers/test_gfo_wrapper.py
imports: import pytest
  import numpy
  from tqdm import tqdm
  from ._parametrize import optimizers
  from hyperactive.search_space import SearchSpace
label_desc: Use image node_id 4 for calling a global function with example usage: test_gfo_opt_wrapper_0(Optimizer, search_space, objective) without return types