code: def test_cs_generate_new_nests():
      search_space = search.SearchSpace(
          n_agents=20,
          n_variables=2,
          lower_bound=[-10, -10],
          upper_bound=[10, 10],
      )
  
      new_cs = cs.CS()
  
      new_agents = new_cs._generate_new_nests(
          search_space.agents, search_space.best_agent
      )
  
      assert len(new_agents) == 20
  
file_path: opytimizer/tests/opytimizer/optimizers/swarm/test_cs.py
imports: import numpy
  from opytimizer.optimizers.swarm import cs
  from opytimizer.spaces import search
label_desc: Use image node_id 3 for calling a global function with example usage: test_cs_generate_new_nests() without return types