code: def test_cs_params_setter():
      new_cs = cs.CS()
  
      try:
          new_cs.alpha = "a"
      except:
          new_cs.alpha = 0.001
  
      try:
          new_cs.alpha = -1
      except:
          new_cs.alpha = 0.001
  
      assert new_cs.alpha == 0.001
  
      try:
          new_cs.beta = "b"
      except:
          new_cs.beta = 0.75
  
      try:
          new_cs.beta = -1
      except:
          new_cs.beta = 0.75
  
      assert new_cs.beta == 0.75
  
      try:
          new_cs.p = "c"
      except:
          new_cs.p = 0.25
  
      try:
          new_cs.p = -1
      except:
          new_cs.p = 0.25
  
      assert new_cs.p == 0.25
  
file_path: opytimizer/tests/opytimizer/optimizers/swarm/test_cs.py
imports: import numpy
  from opytimizer.optimizers.swarm import cs
  from opytimizer.spaces import search
label_desc: Use image node_id 2 for calling a global function with example usage: test_cs_params_setter() without return types