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.
docstr: Load a saved spaces config from a file.
  
  :param in_file_path: Where to load the spaces config from.
  :return: Loaded spaces config object
code: def load(cls, in_file_path: str) -> "SpacesConfig":
      """Load a saved spaces config from a file.
  
      :param in_file_path: Where to load the spaces config from.
      :return: Loaded spaces config object
      """
      with open(in_file_path, "rb") as in_f:
          spaces_config = pickle.load(in_f)
      return spaces_config
  
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 3 for calling the SpacesConfig obj's underlying member method code with example usage: obj.load(cls, in_file_path) and returns: spaces_config