class_docstr: Each sub-step or actor gets its individual critic.
  
  Instantiates a
  :class:`~maze.core.agent.torch_state_critic.TorchStepStateCritic`.
  
  :param observation_spaces_dict: Dict of sub-step id to observation space.
  :param networks: Critics networks as defined in the config (either list or dictionary of object params and type).
class_docstr_tok: ["Each","sub-step","or","actor","gets","its","individual","critic",".","Instantiates","a",":","class",":","`","~maze.core.agent.torch_state_critic.TorchStepStateCritic","`",".",":","param","observation_spaces_dict",":","Dict","of","sub-step","id","to","observation","space",".",":","param","networks",":","Critics","networks","as","defined","in","the","config","(","either","list","or","dictionary","of","object","params","and","type",")","."]
docstr: implementation of :class:`~maze.perception.models.critics.base_state_critic_composer.BaseStateCriticComposer`
          
docstr_tok: ["implementation","of",":","class",":","`","~maze.perception.models.critics.base_state_critic_composer.BaseStateCriticComposer","`"]
code: def critic(self) -> TorchStepStateCritic:
      """implementation of :class:`~maze.perception.models.critics.base_state_critic_composer.BaseStateCriticComposer`"""
      return TorchStepStateCritic(
          self._critics,
          obs_spaces_dict=self._observation_spaces_dict,
          device="cpu",
      )
  
file_path: maze/maze/perception/models/critics/step_state_critic_composer.py
imports: from typing import Dict, Union
  from gym import spaces
  from torch import nn
  from maze.core.agent.torch_state_critic import TorchStepStateCritic
  from maze.core.annotations import override
  from maze.core.env.structured_env import StepKeyType
  from maze.core.utils.config_utils import list_to_dict
  from maze.core.utils.factory import CollectionOfConfigType, Factory
  from maze.perception.models.critics.base_state_critic_composer import BaseStateCriticComposer
label_desc: Use image node_id 2 for calling the StepStateCriticComposer obj's underlying member method code with example usage: obj.critic() and returns: TorchStepStateCritic