code: def test_eho_compile():
      search_space = search.SearchSpace(
          n_agents=20,
          n_variables=2,
          lower_bound=[0, 0],
          upper_bound=[10, 10],
      )
  
      new_eho = eho.EHO()
      new_eho.compile(search_space)
  
      try:
          new_eho.n_ci = "a"
      except:
          new_eho.n_ci = 1
  
      assert new_eho.n_ci == 1
  
      try:
          new_eho.n_ci = -1
      except:
          new_eho.n_ci = 1
  
      assert new_eho.n_ci == 1
  
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 3 for calling a global function with example usage: test_eho_compile() without return types