code: def test_eo_compile():
      search_space = search.SearchSpace(
          n_agents=10,
          n_variables=2,
          lower_bound=[1, 1],
          upper_bound=[10, 10],
      )
  
      new_eo = eo.EO()
      new_eo.compile(search_space)
  
      try:
          new_eo.C = 1
      except:
          new_eo.C = []
  
      assert new_eo.C == []
  
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 3 for calling a global function with example usage: test_eo_compile() without return types