code: def test_ppa_calculate_population():
      search_space = search.SearchSpace(
          n_agents=10,
          n_variables=2,
          lower_bound=[0, 0],
          upper_bound=[10, 10],
      )
  
      new_ppa = ppa.PPA()
      new_ppa.compile(search_space)
  
      n_crows, n_cats, n_cuckoos = new_ppa._calculate_population(
          20, 1, 10
      )
  
      assert n_crows == 13
      assert n_cats == 1
      assert n_cuckoos == 6
  
file_path: opytimizer/tests/opytimizer/optimizers/population/test_ppa.py
imports: import numpy
  from opytimizer.optimizers.population import ppa
  from opytimizer.spaces import search
label_desc: Use image node_id 2 for calling a global function with example usage: test_ppa_calculate_population() without return types