code: def test_moa_params_setter():
      new_moa = moa.MOA()
  
      try:
          new_moa.alpha = "a"
      except:
          new_moa.alpha = 1.0
  
      assert new_moa.alpha == 1.0
  
      try:
          new_moa.alpha = -1
      except:
          new_moa.alpha = 1.0
  
      assert new_moa.alpha == 1.0
  
      try:
          new_moa.rho = "b"
      except:
          new_moa.rho = 2.0
  
      assert new_moa.rho == 2.0
  
      try:
          new_moa.rho = -1
      except:
          new_moa.rho = 2.0
  
      assert new_moa.rho == 2.0
  
imports: from opytimizer.optimizers.science import moa
  from opytimizer.spaces import search
label_desc: Use image node_id 2 for calling a global function with example usage: test_moa_params_setter() without return types