code: def test_bpso_params_setter():
      new_bpso = bpso.BPSO()
  
      try:
          new_bpso.c1 = "a"
      except:
          new_bpso.c1 = r.generate_binary_random_number(size=(1, 1))
  
      assert new_bpso.c1 == 0 or new_bpso.c1 == 1
  
      try:
          new_bpso.c2 = "b"
      except:
          new_bpso.c2 = r.generate_binary_random_number(size=(1, 1))
  
      assert new_bpso.c2 == 0 or new_bpso.c2 == 1
  
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 2 for calling a global function with example usage: test_bpso_params_setter() without return types