code: def test_eo_params_setter():
      new_eo = eo.EO()
  
      try:
          new_eo.a1 = "a"
      except:
          new_eo.a1 = 2.0
  
      try:
          new_eo.a1 = -1
      except:
          new_eo.a1 = 2.0
  
      assert new_eo.a1 == 2.0
  
      try:
          new_eo.a2 = "b"
      except:
          new_eo.a2 = 1.0
  
      try:
          new_eo.a2 = -1
      except:
          new_eo.a2 = 1.0
  
      assert new_eo.a2 == 1.0
  
      try:
          new_eo.GP = "c"
      except:
          new_eo.GP = 0.5
  
      try:
          new_eo.GP = -1
      except:
          new_eo.GP = 0.5
  
      assert new_eo.GP == 0.5
  
      try:
          new_eo.V = "d"
      except:
          new_eo.V = 1.0
  
      try:
          new_eo.V = -1
      except:
          new_eo.V = 1.0
  
      assert new_eo.V == 1.0
  
file_path: opytimizer/tests/opytimizer/optimizers/science/test_eo.py
imports: import numpy
  from opytimizer.optimizers.science import eo
  from opytimizer.spaces import search
label_desc: Use image node_id 2 for calling a global function with example usage: test_eo_params_setter() without return types