code: def test_space_mapping_setter():
      new_space = space.Space(n_variables=1)
  
      try:
          new_space.mapping = "a"
      except:
          new_space.mapping = ["x1"]
  
      assert len(new_space.mapping) == 1
  
      try:
          new_space.mapping = []
      except:
          new_space.mapping = ["x1"]
  
      assert len(new_space.mapping) == 1
  
imports: import numpy
  import pytest
  from opytimizer.core import agent, space
label_desc: Use image node_id 16 for calling a global function with example usage: test_space_mapping_setter() without return types