code: def test_space_create_agents():
      new_space = space.Space(n_agents=2, n_variables=1, n_dimensions=1)
  
      new_space._create_agents()
  
      assert len(new_space.agents) == 2
  
imports: import numpy
  import pytest
  from opytimizer.core import agent, space
label_desc: Use image node_id 19 for calling a global function with example usage: test_space_create_agents() without return types