code: def test_sso_params_setter():
      new_sso = sso.SSO()
  
      try:
          new_sso.C_w = "a"
      except:
          new_sso.C_w = 0.1
  
      try:
          new_sso.C_w = -1
      except:
          new_sso.C_w = 0.1
  
      assert new_sso.C_w == 0.1
  
      try:
          new_sso.C_p = "b"
      except:
          new_sso.C_p = 0.4
  
      try:
          new_sso.C_p = 0.05
      except:
          new_sso.C_p = 0.4
  
      assert new_sso.C_p == 0.4
  
      try:
          new_sso.C_g = "c"
      except:
          new_sso.C_g = 0.9
  
      try:
          new_sso.C_g = 0.35
      except:
          new_sso.C_g = 0.9
  
      assert new_sso.C_g == 0.9
  
file_path: opytimizer/tests/opytimizer/optimizers/swarm/test_sso.py
imports: import numpy
  from opytimizer.optimizers.swarm import sso
  from opytimizer.spaces import search
label_desc: Use image node_id 2 for calling a global function with example usage: test_sso_params_setter() without return types