code: def test_coa_params_setter():
      new_coa = coa.COA()
  
      try:
          new_coa.n_p = "a"
      except:
          new_coa.n_p = 2
  
      assert new_coa.n_p == 2
  
      try:
          new_coa.n_p = -1
      except:
          new_coa.n_p = 2
  
      assert new_coa.n_p == 2
  
file_path: opytimizer/tests/opytimizer/optimizers/population/test_coa.py
imports: import numpy
  from opytimizer.optimizers.population import coa
  from opytimizer.spaces import search
label_desc: Use image node_id 2 for calling a global function with example usage: test_coa_params_setter() without return types