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: Save the spaces config to a file.
  
  :param dump_file_path: Where to save the spaces config.
code: def save(self, dump_file_path: str) -> None:
      """Save the spaces config to a file.
  
      :param dump_file_path: Where to save the spaces config.
      """
      with open(dump_file_path, "wb") as out_f:
          pickle.dump(self, out_f)
  
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 2 for calling the SpacesConfig obj's underlying member method code with example usage: obj.save(dump_file_path) without return types