class_docstr: Helper class to read a story file.
class_docstr_tok: ["Helper","class","to","read","a","story","file","."]
code: def _parse_events(
      self, event_name: Text, parameters: Dict[Text, Any]
  ) -> Optional[List["Event"]]:
      # add 'name' only if event is not a SlotSet,
      # because there might be a slot with slot_key='name'
      if "name" not in parameters and event_name != SlotSet.type_name:
          parameters["name"] = event_name
  
      parsed_events = Event.from_story_string(
          event_name, parameters, default=ActionExecuted
      )
      if parsed_events is None:
          raise StoryParseError(
              "Unknown event '{}'. It is Neither an event "
              "nor an action).".format(event_name)
          )
  
      return parsed_events
  
imports: import logging
  from pathlib import Path
  from typing import Optional, Dict, Text, List, Any, Union
  from rasa.shared.core.domain import Domain
  from rasa.shared.core.events import SlotSet, ActionExecuted, Event
  from rasa.shared.exceptions import RasaCoreException
  from rasa.shared.core.training_data.story_reader.story_step_builder import StoryStepBuilder
  from rasa.shared.core.training_data.structures import StoryStep
label_desc: Use image node_id 7 for calling the StoryReader obj's underlying member method code with example usage: obj._parse_events(event_name, parameters) and returns: parsed_events