code: def test_loa_nomad_attack():
      search_space = search.SearchSpace(
          n_agents=100,
          n_variables=2,
          lower_bound=[0, 0],
          upper_bound=[10, 10],
      )
  
      new_loa = loa.LOA()
      new_loa.compile(search_space)
  
      nomads = new_loa._get_nomad_lions(search_space.agents)
      prides = new_loa._get_pride_lions(search_space.agents)
  
      new_nomads, new_prides = new_loa._nomad_attack(nomads, prides)
  
imports: from types import new_class
  import numpy
  from opytimizer.optimizers.population import loa
  from opytimizer.spaces import search
label_desc: Use image node_id 16 for calling a global function with example usage: test_loa_nomad_attack() without return types