class_docstr: Represents configuration of environment spaces (action & observation) used for model config.
  
  Spaces config are needed (together with model config and dumped state dict) when loading
  a trained policy for rollout.
code: def __init__(
      self,
      action_spaces_dict: Dict[StepKeyType, gym.spaces.Dict],
      observation_spaces_dict: Dict[StepKeyType, gym.spaces.Dict],
      agent_counts_dict: Dict[StepKeyType, int],
  ):
      self.action_spaces_dict = action_spaces_dict
      self.observation_spaces_dict = observation_spaces_dict
      self.agent_counts_dict = agent_counts_dict
  
file_path: maze/maze/perception/models/space_config.py
imports: import pickle
  from typing import Dict, Any
  import gym
  from maze.core.env.structured_env import StepKeyType
label_desc: Use image node_id 1 to create a new SpacesConfig object  with example: obj = SpacesConfig(action_spaces_dict, observation_spaces_dict, agent_counts_dict)