code: def test_bpso_update():
      boolean_space = boolean.BooleanSpace(n_agents=2, n_variables=5)
  
      new_bpso = bpso.BPSO()
      new_bpso.compile(boolean_space)
  
      new_bpso.update(boolean_space)
  
file_path: opytimizer/tests/opytimizer/optimizers/boolean/test_bpso.py
imports: import sys
  import numpy
  import opytimizer.math.random
  from opytimizer.core import function
  from opytimizer.optimizers.boolean import bpso
  from opytimizer.spaces import boolean
label_desc: Use image node_id 5 for calling a global function with example usage: test_bpso_update() without return types