code: def test_aiwpso_compute_success():
      search_space = search.SearchSpace(
          n_agents=2,
          n_variables=2,
          lower_bound=[0, 0],
          upper_bound=[10, 10],
      )
  
      new_aiwpso = pso.AIWPSO()
      new_aiwpso.compile(search_space)
  
      new_aiwpso.fitness = [1, 1]
      new_aiwpso._compute_success(search_space.agents)
  
file_path: opytimizer/tests/opytimizer/optimizers/swarm/test_pso.py
imports: import numpy
  from opytimizer.optimizers.swarm import pso
  from opytimizer.spaces import search
label_desc: Use image node_id 6 for calling a global function with example usage: test_aiwpso_compute_success() without return types