code: def test_iwo_update():
      def square(x):
          return np.sum(x**2)
  
      new_iwo = iwo.IWO()
      new_iwo.min_seeds = 5
      new_iwo.max_seeds = 20
  
      search_space = search.SearchSpace(
          n_agents=5,
          n_variables=2,
          lower_bound=[1, 1],
          upper_bound=[10, 10],
      )
  
      new_iwo.update(search_space, square, 1, 10)
  
file_path: opytimizer/tests/opytimizer/optimizers/evolutionary/test_iwo.py
imports: import numpy
  from opytimizer.optimizers.evolutionary import iwo
  from opytimizer.spaces import search
label_desc: Use image node_id 5 for calling a global function with example usage: test_iwo_update() and returns: np