code: def test_esa_compile():
      search_space = search.SearchSpace(
          n_agents=10,
          n_variables=2,
          lower_bound=[1, 1],
          upper_bound=[10, 10],
      )
  
      new_esa = esa.ESA()
      new_esa.compile(search_space)
  
      try:
          new_esa.D = 1
      except:
          new_esa.D = np.array([1])
  
      assert new_esa.D == np.array([1])
  
imports: import numpy
  from opytimizer.optimizers.science import esa
  from opytimizer.spaces import search
label_desc: Use image node_id 3 for calling a global function with example usage: test_esa_compile() without return types