class_docstr: Generic flat policy interface.
docstr: Pick the next action based on the current observation.
  
  :param observation: Current observation of the environment
  :param deterministic: Specify if the action should be computed deterministically
  :return: Next action to take
docstr_tok: ["Pick","the","next","action","based","on","the","current","observation",".",":","param","observation",":","Current","observation","of","the","environment",":","param","deterministic",":","Specify","if","the","action","should","be","computed","deterministically",":","return",":","Next","action","to","take"]
code: def compute_action(
      self, observation: ObservationType, deterministic: bool
  ) -> ActionType:
      """
      Pick the next action based on the current observation.
  
      :param observation: Current observation of the environment
      :param deterministic: Specify if the action should be computed deterministically
      :return: Next action to take
      """
  
file_path: maze/maze/core/agent/flat_policy.py
imports: from abc import ABC, abstractmethod
  from typing import Tuple, Sequence, Optional
  from maze.core.env.action_conversion import ActionType
  from maze.core.env.observation_conversion import ObservationType
label_desc: Use image node_id 1 for calling the FlatPolicy obj's underlying member method code with example usage: obj.compute_action(observation, deterministic) without return types