code: def test_tuple_to_dict_action_wrapper():
      """gym env wrapper unit test"""
      base_env = DummyTupleEnv()
      env = DictActionWrapper.wrap(base_env)
  
      assert isinstance(env.action_space, spaces.Dict)
  
      action = env.action_space.sample()
      out_action = env.action(action)
  
      assert env.action_space.contains(env.reverse_action(out_action))
      assert env.reverse_action(out_action) == action
  
imports: import gym
  from gym import spaces
  from maze.core.wrappers.dict_action_wrapper import DictActionWrapper
label_desc: Use image node_id 2 for calling a global function with example usage: test_tuple_to_dict_action_wrapper() without return types