code: def test_wca_params_setter():
      new_wca = wca.WCA()
  
      try:
          new_wca.nsr = 0.0
      except:
          new_wca.nsr = 10
  
      try:
          new_wca.nsr = 0
      except:
          new_wca.nsr = 10
  
      assert new_wca.nsr == 10
  
      try:
          new_wca.d_max = "a"
      except:
          new_wca.d_max = 0.1
  
      try:
          new_wca.d_max = -1
      except:
          new_wca.d_max = 0.1
  
      assert new_wca.d_max == 0.1
  
file_path: opytimizer/tests/opytimizer/optimizers/science/test_wca.py
imports: import numpy
  from opytimizer.optimizers.science import wca
  from opytimizer.spaces import search
label_desc: Use image node_id 2 for calling a global function with example usage: test_wca_params_setter() without return types