code: def test_space_mapping():
      new_space = space.Space(n_variables=1)
  
      assert len(new_space.mapping) == 1
  
imports: import numpy
  import pytest
  from opytimizer.core import agent, space
label_desc: Use image node_id 15 for calling a global function with example usage: test_space_mapping() without return types