code: def test_opytimizer_optimizer_setter():
      space = search.SearchSpace(1, 1, 0, 1)
      func = function.Function(callable)
      optimizer = pso.PSO()
  
      new_opytimizer = opytimizer.Opytimizer(space, optimizer, func)
  
      try:
          optimizer.built = False
          new_opytimizer.optimizer = optimizer
      except:
          optimizer.built = True
          new_opytimizer.optimizer = optimizer
  
      assert type(new_opytimizer.optimizer).__name__ == "PSO"
  
imports: import opytimizer
  from opytimizer.core import function
  from opytimizer.optimizers.swarm import pso
  from opytimizer.spaces import search
  from opytimizer.utils import callback, history
label_desc: Use image node_id 4 for calling a global function with example usage: test_opytimizer_optimizer_setter() without return types