code: def test_wwo_compile():
      search_space = search.SearchSpace(
          n_agents=50,
          n_variables=2,
          lower_bound=[0, 0],
          upper_bound=[10, 10],
      )
  
      new_wwo = wwo.WWO()
      new_wwo.compile(search_space)
  
      try:
          new_wwo.height = 1
      except:
          new_wwo.height = np.array([1])
  
      assert new_wwo.height == np.array([1])
  
      try:
          new_wwo.length = 1
      except:
          new_wwo.length = np.array([1])
  
      assert new_wwo.length == np.array([1])
  
file_path: opytimizer/tests/opytimizer/optimizers/science/test_wwo.py
imports: import numpy
  from opytimizer.optimizers.science import wwo
  from opytimizer.spaces import search
label_desc: Use image node_id 3 for calling a global function with example usage: test_wwo_compile() without return types