code: def test_doa_compile():
      search_space = search.SearchSpace(
          n_agents=10,
          n_variables=2,
          lower_bound=[0, 0],
          upper_bound=[10, 10],
      )
  
      new_doa = doa.DOA()
      new_doa.compile(search_space)
  
      try:
          new_doa.chaotic_map = 1
      except:
          new_doa.chaotic_map = np.array([1])
  
      assert new_doa.chaotic_map == 1
  
file_path: opytimizer/tests/opytimizer/optimizers/misc/test_doa.py
imports: import numpy
  from opytimizer.optimizers.misc import doa
  from opytimizer.spaces import search
label_desc: Use image node_id 3 for calling a global function with example usage: test_doa_compile() without return types