class_docstr: Dummy structured policy for the CartPole env.
  
  Useful mainly for showcase of the config scheme and for testing.
class_docstr_tok: ["Dummy","structured","policy","for","the","CartPole","env",".","Useful","mainly","for","showcase","of","the","config","scheme","and","for","testing","."]
docstr: Sample an action.
docstr_tok: ["Sample","an","action","."]
code: def compute_action(
      self,
      observation: ObservationType,
      maze_state: Optional[MazeStateType] = None,
      env: Optional[BaseEnv] = None,
      actor_id: ActorID = None,
      deterministic: bool = False,
  ) -> ActionType:
      """Sample an action."""
      action = 1 if observation["observation"][2] > 0 else 0
      return {"action": action}
  
file_path: maze/maze/core/agent/dummy_cartpole_policy.py
imports: from typing import Sequence, Tuple, Optional
  import gym
  from maze.core.agent.policy import Policy
  from maze.core.annotations import override
  from maze.core.env.action_conversion import ActionType
  from maze.core.env.base_env import BaseEnv
  from maze.core.env.maze_state import MazeStateType
  from maze.core.env.observation_conversion import ObservationType
  from maze.core.env.structured_env import ActorID
label_desc: Use image node_id 4 for calling the DummyCartPolePolicy obj's underlying member method code with example usage: obj.compute_action(observation, maze_state, env, actor_id, deterministic) and returns: dict