code: def assertion_routine(env: StepSkipWrapper) -> None:
      """Checks if skipping went well."""
      env.reset()
  
      n_substeps = len(env.action_spaces_dict)
      for idx in range(n_substeps):
          if idx == 1:
              assert env._steps_done == 1
  
          if idx == 2:
              assert 0 in env._step_actions
              assert (
                  env._step_actions[env.actor_id()[0]]
                  in env.action_space
              )
  
          # sample action
          action = env.action_space.sample()
          # take env step
          obs, rew, done, info = env.step(action)
  
          if idx == 0:
              assert rew == 1
          elif idx == 1:
              assert rew == 8
  
      assert env._steps_done == 0
  
imports: from maze.core.log_events.episode_event_log import EpisodeEventLog
  from maze.core.log_events.log_events_writer import LogEventsWriter
  from maze.core.log_events.monitoring_events import RewardEvents
  from maze.core.wrappers.log_stats_wrapper import LogStatsWrapper
  from maze.core.wrappers.maze_gym_env_wrapper import GymMazeEnv
  from maze.core.wrappers.step_skip_wrapper import StepSkipWrapper
  from maze.test.shared_test_utils.dummy_env.dummy_core_env import DummyCoreEnvironment
  from maze.test.shared_test_utils.dummy_env.dummy_maze_env import DummyEnvironment
  from maze.test.shared_test_utils.dummy_env.dummy_struct_env import DummyStructuredEnvironment
  from maze.test.shared_test_utils.dummy_env.space_interfaces.action_conversion.dict import DictActionConversion
  from maze.test.shared_test_utils.dummy_env.space_interfaces.observation_conversion.dict import ObservationConversion
  from maze.test.shared_test_utils.wrappers import assert_wrapper_clone_from
label_desc: Use image node_id 2 for calling a global function with example usage: assertion_routine(env) without return types