code: def test_fso_params_setter():
      new_fso = fso.FSO()
  
      try:
          new_fso.beta = "a"
      except:
          new_fso.beta = 0.5
  
      assert new_fso.beta == 0.5
  
      try:
          new_fso.beta = -1
      except:
          new_fso.beta = 0.5
  
      assert new_fso.beta == 0.5
  
imports: import numpy
  from opytimizer.optimizers.swarm import fso
  from opytimizer.spaces import search
label_desc: Use image node_id 2 for calling a global function with example usage: test_fso_params_setter() without return types