class_docstr: Represents a conflict between two or more stories.
  
  Here, a conflict means that different actions are supposed to follow from
  the same dialogue state, which most policies cannot learn.
docstr: Creates a `StoryConflict` from a given state.
  
  Args:
      sliced_states: The (sliced) dialogue state at which the conflict occurs.
docstr_tok: ["Creates","a","`","StoryConflict","`","from","a","given","state",".","Args",":","sliced_states",":","The","(","sliced",")","dialogue","state","at","which","the","conflict","occurs","."]
code: def __init__(self, sliced_states: List[State]) -> None:
      """Creates a `StoryConflict` from a given state.
  
      Args:
          sliced_states: The (sliced) dialogue state at which the conflict occurs.
      """
      self._sliced_states = sliced_states
      # A list of actions that all follow from the same state.
      self._conflicting_actions: DefaultDict[
          Text, List[Text]
      ] = defaultdict(list)
  
imports: from collections import defaultdict
  import logging
  import json
  from typing import DefaultDict, Dict, Generator, List, NamedTuple, Optional, Text, Tuple
  from rasa.core.featurizers.tracker_featurizers import MaxHistoryTrackerFeaturizer
  from rasa.shared.core.constants import ACTION_LISTEN_NAME, PREVIOUS_ACTION, ACTION_UNLIKELY_INTENT_NAME, USER
  from rasa.shared.core.domain import Domain, State
  from rasa.shared.core.events import ActionExecuted, Event
  from rasa.shared.core.generator import TrackerWithCachedStates
  from rasa.nlu.tokenizers.tokenizer import Tokenizer
  from rasa.shared.nlu.constants import TEXT
  from rasa.shared.nlu.training_data.message import Message
label_desc: Use image node_id 1 to create a new StoryConflict object  with example: obj = StoryConflict(sliced_states)