code: def test_moa_compile():
      try:
          search_space = search.SearchSpace(
              n_agents=10,
              n_variables=2,
              lower_bound=[0, 0],
              upper_bound=[10, 10],
          )
  
          new_moa = moa.MOA()
          new_moa.compile(search_space)
      except:
          search_space = search.SearchSpace(
              n_agents=9,
              n_variables=2,
              lower_bound=[0, 0],
              upper_bound=[10, 10],
          )
  
          new_moa = moa.MOA()
          new_moa.compile(search_space)
  
imports: from opytimizer.optimizers.science import moa
  from opytimizer.spaces import search
label_desc: Use image node_id 3 for calling a global function with example usage: test_moa_compile() without return types