class_docstr: Structured state action critic class designed to work with structured environments.
  (see :class:`~maze.core.env.structured_env.StructuredEnv`).
  
  It encapsulates state critic and queries them for values according to the provided policy ID.
class_docstr_tok: ["Structured","state","action","critic","class","designed","to","work","with","structured","environments",".","(","see",":","class",":","`","~maze.core.env.structured_env.StructuredEnv","`",")",".","It","encapsulates","state","critic","and","queries","them","for","values","according","to","the","provided","policy","ID","."]
docstr: Predict the Q value based on the observations and actions.
  
  :param observations: The observation for the current step.
  :param actions: The action performed at the current step.
  :param gather_output: Specify whether to gather the output in the discrete setting.
  
  :return: A list of tensors holding the predicted q value for each critic.
docstr_tok: ["Predict","the","Q","value","based","on","the","observations","and","actions",".",":","param","observations",":","The","observation","for","the","current","step",".",":","param","actions",":","The","action","performed","at","the","current","step",".",":","param","gather_output",":","Specify","whether","to","gather","the","output","in","the","discrete","setting",".",":","return",":","A","list","of","tensors","holding","the","predicted","q","value","for","each","critic","."]
code: def predict_q_values(
      self,
      observations: Dict[Union[str, int], Dict[str, torch.Tensor]],
      actions: Dict[Union[str, int], Dict[str, torch.Tensor]],
      gather_output: bool,
  ) -> Dict[
      Union[str, int],
      List[Union[torch.Tensor, Dict[str, torch.Tensor]]],
  ]:
      """Predict the Q value based on the observations and actions.
  
      :param observations: The observation for the current step.
      :param actions: The action performed at the current step.
      :param gather_output: Specify whether to gather the output in the discrete setting.
  
      :return: A list of tensors holding the predicted q value for each critic.
      """
  
imports: from abc import ABC, abstractmethod
  from typing import Union, Dict, List
  import torch
label_desc: Use image node_id 1 for calling the StateActionCritic obj's underlying member method code with example usage: obj.predict_q_values(observations, actions, gather_output) without return types