class_docstr: Writes story training data to file.
docstr: Identifies if the event should be converted/written.
  
  Args:
      event: target event to check.
  
  Returns:
      `True` if the event should be converted/written, `False` otherwise.
docstr_tok: ["Identifies","if","the","event","should","be","converted\/written",".","Args",":","event",":","target","event","to","check",".","Returns",":","`","True","`","if","the","event","should","be","converted\/written",",","`","False","`","otherwise","."]
code: def _filter_event(event: Union["Event", List["Event"]]) -> bool:
      """Identifies if the event should be converted/written.
  
      Args:
          event: target event to check.
  
      Returns:
          `True` if the event should be converted/written, `False` otherwise.
      """
      from rasa.shared.core.training_data.structures import StoryStep
  
      # This is an "OR" statement, so we accept it
      if isinstance(event, list):
          return True
  
      return (
          not StoryStep.is_action_listen(event)
          and not StoryStep.is_action_unlikely_intent(event)
          and not StoryStep.is_action_session_start(event)
      )
  
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 3 for calling the StoryWriter obj's underlying member method code with example usage: obj._filter_event(event) and returns: unknown, True