code: def test_memory_0(Optimizer):
      optimizer = Optimizer()
  
      n_iter = 30
  
      hyper = Hyperactive()
      hyper.add_search(
          objective_function,
          search_space,
          optimizer=optimizer,
          n_iter=n_iter,
          n_jobs=2,
      )
      hyper.add_search(
          objective_function,
          search_space,
          optimizer=optimizer,
          n_iter=n_iter,
          n_jobs=2,
      )
      hyper.run()
  
imports: import pytest
  import numpy
  from hyperactive import Hyperactive
  from ._parametrize import optimizers
label_desc: Use image node_id 2 for calling a global function with example usage: test_memory_0(Optimizer) without return types