code: def test_cem_params_setter():
      new_cem = cem.CEM()
  
      try:
          new_cem.n_updates = "a"
      except:
          new_cem.n_updates = 10
  
      try:
          new_cem.n_updates = -1
      except:
          new_cem.n_updates = 10
  
      assert new_cem.n_updates == 10
  
      try:
          new_cem.alpha = "b"
      except:
          new_cem.alpha = 0.5
  
      try:
          new_cem.alpha = -1
      except:
          new_cem.alpha = 0.5
  
      assert new_cem.alpha == 0.5
  
file_path: opytimizer/tests/opytimizer/optimizers/misc/test_cem.py
imports: import numpy
  from opytimizer.core import function
  from opytimizer.optimizers.misc import cem
  from opytimizer.spaces import search
label_desc: Use image node_id 2 for calling a global function with example usage: test_cem_params_setter() without return types