class_docstr: A structured environment which returns random actions
docstr: Generic sub-step function.
  
  :return: state, reward, done, info
docstr_tok: ["Generic","sub-step","function",".",":","return",":","state",",","reward",",","done",",","info"]
code: def step(self, action) -> Tuple[Dict, float, bool, Optional[Dict]]:
      """Generic sub-step function.
  
      :return: state, reward, done, info
      """
  
      sub_step_result = None
      if self._sub_step_index == 0:
          sub_step_result = self._action0(action)
      elif self._sub_step_index == 1:
          sub_step_result = self._action1(action)
  
      self._sub_step_index = 0 if self._sub_step_index == 1 else 1
      return sub_step_result
  
imports: from typing import Any, Dict, Union, Tuple, Callable, Optional
  import gym
  import numpy
  from maze.core.env.maze_env import MazeEnv
  from maze.core.env.structured_env import StructuredEnv, StepKeyType, ActorID
  from maze.core.env.structured_env_spaces_mixin import StructuredEnvSpacesMixin
  from maze.core.wrappers.wrapper import Wrapper
label_desc: Use image node_id 3 for calling the DummyStructuredEnvironment obj's underlying member method code with example usage: obj.step(action) and returns: sub_step_result