code: def test_mapping():
      """The Gym Dict space inherits from Mapping that allows it to appear like a standard python Dictionary."""
      assert len(DICT_SPACE) == 3
  
      a = DICT_SPACE["a"]
      b = Discrete(5)
      assert a != b
      DICT_SPACE["a"] = b
      assert DICT_SPACE["a"] == b
  
      with pytest.raises(
          AssertionError,
          match="Trying to set a to Dict space with value that is not a gym space, actual type: <class 'int'>",
      ):
          DICT_SPACE["a"] = 5
  
      DICT_SPACE["a"] = a
  
file_path: gym/tests/spaces/test_dict.py
imports: from collections import OrderedDict
  import numpy
  import pytest
  from gym.spaces import Box, Dict, Discrete
label_desc: Use image node_id 6 for calling a global function with example usage: test_mapping() without return types