code: def test_eho_params_setter():
      new_eho = eho.EHO()
  
      try:
          new_eho.alpha = "a"
      except:
          new_eho.alpha = 0.5
  
      try:
          new_eho.alpha = -1
      except:
          new_eho.alpha = 0.5
  
      assert new_eho.alpha == 0.5
  
      try:
          new_eho.beta = "a"
      except:
          new_eho.beta = 0.1
  
      try:
          new_eho.beta = -1
      except:
          new_eho.beta = 0.1
  
      assert new_eho.beta == 0.1
  
      try:
          new_eho.n_clans = 0.0
      except:
          new_eho.n_clans = 10
  
      try:
          new_eho.n_clans = 0
      except:
          new_eho.n_clans = 10
  
      assert new_eho.n_clans == 10
  
file_path: opytimizer/tests/opytimizer/optimizers/swarm/test_eho.py
imports: import numpy
  from opytimizer.optimizers.swarm import eho
  from opytimizer.spaces import search
label_desc: Use image node_id 2 for calling a global function with example usage: test_eho_params_setter() without return types