class_docstr: Raises an error in the step function of every second episode.
class_docstr_tok: ["Raises","an","error","in","the","step","function","of","every","second","episode","."]
code: def step(self, *args, **kwargs):
      if self.n_episodes % 2:
          raise RuntimeError("Test error in step")
      return super().step(*args, **kwargs)
  
imports: import queue
  from collections import deque
  from typing import Any, Type, Optional
  from maze.core.agent.random_policy import RandomPolicy
  from maze.core.env.maze_env import MazeEnv
  from maze.core.env.observation_conversion import ObservationType
  from maze.core.rollout.parallel_rollout_runner import ParallelRolloutWorker, EpisodeStatsReport
  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.space_interfaces.action_conversion.dict import DictActionConversion
  from maze.test.shared_test_utils.dummy_env.space_interfaces.observation_conversion.dict import ObservationConversion
label_desc: Use image node_id 3 for calling the ErrorInStepEnv obj's underlying member method code with example usage: obj.step() and returns: super