code: def test_de_params_setter():
      new_de = de.DE()
  
      try:
          new_de.CR = "a"
      except:
          new_de.CR = 0.5
  
      try:
          new_de.CR = -1
      except:
          new_de.CR = 0.5
  
      assert new_de.CR == 0.5
  
      try:
          new_de.F = "b"
      except:
          new_de.F = 0.5
  
      try:
          new_de.F = -1
      except:
          new_de.F = 0.5
  
      assert new_de.F == 0.5
  
imports: import numpy
  from opytimizer.optimizers.evolutionary import de
  from opytimizer.spaces import search
label_desc: Use image node_id 2 for calling a global function with example usage: test_de_params_setter() without return types