code: def test_default_shared_model_multi_obs() -> None:
      env = build_dummy_maze_env_with_structured_core_env()
      build_structured_with_critic_type(
          env,
          StepStateCriticComposer,
          TorchStepStateCritic,
          shared_embedding_keys=["latent"],
      )
      build_structured_with_critic_type(
          env,
          StepStateCriticComposer,
          TorchStepStateCritic,
          shared_embedding_keys=[
              "observation_0_StridedConvolutionDenseBlock",
              "observation_1_DenseBlock",
          ],
      )
      with pytest.raises(AssertionError):
          build_structured_with_critic_type(
              env,
              StepStateCriticComposer,
              TorchStepStateCritic,
              shared_embedding_keys=["concat", "observation_1"],
          )
  
file_path: maze/maze/test/perception/models/test_template_model_composer.py
imports: from typing import Dict, List, Union, Optional
  import pytest
  from torch import nn
  from maze.core.agent.random_policy import RandomPolicy
  from maze.core.agent.state_critic_input_output import StateCriticInput
  from maze.core.agent.torch_state_critic import TorchSharedStateCritic, TorchDeltaStateCritic, TorchStepStateCritic, TorchStateCritic
  from maze.core.env.structured_env import StepKeyType
  from maze.core.rollout.rollout_generator import RolloutGenerator
  from maze.core.wrappers.maze_gym_env_wrapper import GymMazeEnv
  from maze.distributions.distribution_mapper import DistributionMapper
  from maze.perception.blocks.inference import InferenceBlock
  from maze.perception.models.critics import SharedStateCriticComposer, StepStateCriticComposer, BaseStateCriticComposer, DeltaStateCriticComposer
  from maze.perception.models.template_model_composer import TemplateModelComposer
  from maze.test.shared_test_utils.helper_functions import build_dummy_structured_env, build_dummy_maze_env_with_structured_core_env
label_desc: Use image node_id 5 for calling a global function with example usage: test_default_shared_model_multi_obs() without return types