original_docstring: 
          Save an Transition object to disk with a specified file format.
          Defaults to YAML.
  
          Parameters
          ----------
          filepath : str
              Path to yaml file
          format : str, optional
              Denoting the syntax used for dumping. Defaults to YAML.
          
docstring: Save an Transition object to disk with a specified file format.
  Defaults to YAML.
  
  Parameters
  
  filepath : str
  Path to yaml file
  format : str, optional
  Denoting the syntax used for dumping. Defaults to YAML.
docstring_tokens: Save an Transition object to disk with a specified file format . Defaults to YAML . Parameters filepath : str Path to yaml file format : str optional Denoting the syntax used for dumping . Defaults to YAML .
code: def to_file(self, filepath: str, format="yaml"):
          """
          Save an Transition object to disk with a specified file format.
          Defaults to YAML.
  
          Parameters
          ----------
          filepath : str
              Path to yaml file
          format : str, optional
              Denoting the syntax used for dumping. Defaults to YAML.
          """
          if "." not in filepath:
              if format == "json":
                  filepath += ".json"
              else:
                  filepath += ".yml"
          if format == "json":
              writer = routines.dump_json
          else:
              writer = routines.dump_yaml
          writer(filepath, self.__dict__)
code_tokens: def to_file ( self , filepath : str , format = "yaml" ) : if "." not in filepath : if format == "json" : filepath += ".json" else : filepath += ".yml" if format == "json" : writer = routines . dump_json else : writer = routines . dump_yaml writer ( filepath , self . __dict__ )
short_docstring: Save an Transition object to disk with a specified file format.
short_docstring_tokens: Save an Transition object to disk with a specified file format .
comment: """
          Save an Transition object to disk with a specified file format.
          Defaults to YAML.
  
          Parameters
          ----------
          filepath : str
              Path to yaml file
          format : str, optional
              Denoting the syntax used for dumping. Defaults to YAML.
          """