code: def test_bwo_params_setter():
      new_bwo = bwo.BWO()
  
      try:
          new_bwo.pp = "a"
      except:
          new_bwo.pp = 0.6
  
      try:
          new_bwo.pp = -1
      except:
          new_bwo.pp = 0.6
  
      assert new_bwo.pp == 0.6
  
      try:
          new_bwo.cr = "b"
      except:
          new_bwo.cr = 0.44
  
      try:
          new_bwo.cr = -1
      except:
          new_bwo.cr = 0.44
  
      assert new_bwo.cr == 0.44
  
      try:
          new_bwo.pm = "c"
      except:
          new_bwo.pm = 0.4
  
      try:
          new_bwo.pm = -1
      except:
          new_bwo.pm = 0.4
  
      assert new_bwo.pm == 0.4
  
file_path: opytimizer/tests/opytimizer/optimizers/swarm/test_bwo.py
imports: import numpy
  from opytimizer.optimizers.swarm import bwo
  from opytimizer.spaces import search
label_desc: Use image node_id 2 for calling a global function with example usage: test_bwo_params_setter() without return types