code: def test_foa_global_seeding():
      def square(x):
          return np.sum(x**2)
  
      search_space = search.SearchSpace(
          n_agents=10,
          n_variables=2,
          lower_bound=[0, 0],
          upper_bound=[10, 10],
      )
  
      new_foa = foa.FOA()
      new_foa.compile(search_space)
  
      new_foa.life_time = 1
      new_foa.area_limit = 1
      new_foa.transfer_rate = 0.5
      new_foa.age = [2] * 10
      candidate = new_foa._population_limiting(search_space)
  
      new_foa._global_seeding(search_space, square, candidate)
  
file_path: opytimizer/tests/opytimizer/optimizers/evolutionary/test_foa.py
imports: import numpy
  from opytimizer.optimizers.evolutionary import foa
  from opytimizer.spaces import search
label_desc: Use image node_id 6 for calling a global function with example usage: test_foa_global_seeding() and returns: np