code: def _test_dummy_env_for_split_config(
      split_config: Dict[str, Dict]
  ) -> None:
      """Test the split action wrapper on the dummy env for a given split_config
  
      :param split_config: The split action config to apply and test.
      """
      base_env = build_dummy_maze_env()
  
      env = SplitActionsWrapper.wrap(
          base_env, split_config=split_config
      )
  
      _ = env.action_space
  
      for key, sub_actions in split_config.items():
          for sub_key in sub_actions.keys():
              assert sub_key in env.action_space.spaces.keys()
          assert key not in env.action_space.spaces.keys()
  
      assert env.action_spaces_dict[0] == env.action_space
  
      base_env_action = base_env.action_space.sample()
      split_action = env.reverse_action(base_env_action)
  
      for key, sub_actions in split_config.items():
          for sub_key in sub_actions.keys():
              assert sub_key in split_action
          assert key not in split_action
  
      for key in base_env.action_space.spaces.keys():
          assert np.all(
              base_env_action[key] == env.action(split_action)[key]
          )
  
file_path: maze/maze/test/core/wrappers/test_split_actions_wrapper.py
imports: from typing import Dict
  import numpy
  import pytest
  from gym import spaces
  from maze.core.wrappers.maze_gym_env_wrapper import GymMazeEnv
  from maze.core.wrappers.split_actions_wrapper import SplitActionsWrapper
  from maze.test.shared_test_utils.helper_functions import build_dummy_maze_env
label_desc: Use image node_id 2 for calling a global function with example usage: _test_dummy_env_for_split_config(split_config) without return types