class_docstr: Writes story training data to file.
docstr: Turns Story steps into an string.
  
  Args:
      story_steps: Original story steps to be converted to the YAML.
      is_appendable: Specify if result should not contain
                     high level keys/definitions and can be appended to
                     the existing story file.
      is_test_story: Identifies if the stories should be exported in test stories
                     format.
  
  Returns:
      String with story steps in the desired format.
docstr_tok: ["Turns","Story","steps","into","an","string",".","Args",":","story_steps",":","Original","story","steps","to","be","converted","to","the","YAML",".","is_appendable",":","Specify","if","result","should","not","contain","high","level","keys\/definitions","and","can","be","appended","to","the","existing","story","file",".","is_test_story",":","Identifies","if","the","stories","should","be","exported","in","test","stories","format",".","Returns",":","String","with","story","steps","in","the","desired","format","."]
code: def dumps(
      self,
      story_steps: List["StoryStep"],
      is_appendable: bool = False,
      is_test_story: bool = False,
  ) -> Text:
      """Turns Story steps into an string.
  
      Args:
          story_steps: Original story steps to be converted to the YAML.
          is_appendable: Specify if result should not contain
                         high level keys/definitions and can be appended to
                         the existing story file.
          is_test_story: Identifies if the stories should be exported in test stories
                         format.
  
      Returns:
          String with story steps in the desired format.
      """
      raise NotImplementedError
  
file_path: rasa/rasa/shared/core/training_data/story_writer/story_writer.py
imports: import typing
  from pathlib import Path
  from typing import List, Text, Union
  from ruamel import yaml
label_desc: Use image node_id 1 for calling the StoryWriter obj's underlying member method code with example usage: obj.dumps(story_steps, is_appendable, is_test_story) without return types