code: def test_as_story_string_or_statement_with_slot_was_set():
      import rasa.shared.utils.io
  
      stories = """
      stories:
      - story: hello world
        steps:
        - or:
          - slot_was_set:
              - name: joe
          - slot_was_set:
              - name: bob
        - action: some_action
      """
  
      reader = YAMLStoryReader()
      yaml_content = rasa.shared.utils.io.read_yaml(stories)
  
      steps = reader.read_from_parsed_yaml(yaml_content)
  
      assert len(steps) == 3
  
file_path: rasa/tests/shared/core/training_data/test_structures.py
imports: import rasa.core
  from rasa.shared.constants import LATEST_TRAINING_DATA_FORMAT_VERSION
  from rasa.shared.core.constants import ACTION_SESSION_START_NAME
  from rasa.shared.core.domain import Domain
  from rasa.shared.core.events import SessionStarted, SlotSet, UserUttered, ActionExecuted, DefinePrevUserUtteredFeaturization
  from rasa.shared.core.trackers import DialogueStateTracker
  from rasa.shared.core.training_data.story_reader.yaml_story_reader import YAMLStoryReader
  from rasa.shared.core.training_data.story_writer.yaml_story_writer import YAMLStoryWriter
  from rasa.shared.core.training_data.structures import Story
  from rasa.shared.nlu.constants import INTENT_NAME_KEY
label_desc: Use image node_id 2 for calling a global function with example usage: test_as_story_string_or_statement_with_slot_was_set() without return types