code: def test_opytimizer_iterations_setter():
      space = search.SearchSpace(1, 1, 0, 1)
      func = function.Function(callable)
      optimizer = pso.PSO()
  
      new_opytimizer = opytimizer.Opytimizer(space, optimizer, func)
  
      try:
          new_opytimizer.iteration = "a"
      except:
          new_opytimizer.iteration = 0
  
      assert new_opytimizer.iteration == 0
  
      try:
          new_opytimizer.iteration = -1
      except:
          new_opytimizer.iteration = 0
  
      assert new_opytimizer.iteration == 0
  
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 10 for calling a global function with example usage: test_opytimizer_iterations_setter() without return types