code: def test_ssd_params_setter():
      new_ssd = ssd.SSD()
  
      try:
          new_ssd.c = "a"
      except:
          new_ssd.c = 0.5
  
      try:
          new_ssd.c = -1
      except:
          new_ssd.c = 0.5
  
      assert new_ssd.c == 0.5
  
      try:
          new_ssd.decay = "b"
      except:
          new_ssd.decay = 0.99
  
      try:
          new_ssd.decay = -1
      except:
          new_ssd.decay = 0.99
  
      assert new_ssd.decay == 0.99
  
file_path: opytimizer/tests/opytimizer/optimizers/social/test_ssd.py
imports: import numpy
  from opytimizer.optimizers.social import ssd
  from opytimizer.spaces import search
  from opytimizer.utils import constant
label_desc: Use image node_id 2 for calling a global function with example usage: test_ssd_params_setter() without return types