code: def _find_conflicting_states(
      trackers: List[TrackerWithCachedStates],
      domain: Domain,
      max_history: Optional[int],
      tokenizer: Optional[Tokenizer] = None,
  ) -> Dict[int, List[int]]:
      """Identifies all states from which different actions follow.
  
      Args:
          trackers: Trackers that contain the states.
          domain: The domain object.
          max_history: Number of turns to take into account for the state descriptions.
          tokenizer: A tokenizer to tokenize the user messages.
  
      Returns:
          A dictionary mapping state-hashes to a list of actions that follow from each
          state.
      """
      # Create a 'state -> list of actions' dict, where the state is
      # represented by its hash
      state_action_mapping: DefaultDict[int, List[int]] = defaultdict(
          list
      )
  
      for element in _sliced_states_iterator(
          trackers, domain, max_history, tokenizer
      ):
          hashed_state = element.sliced_states_hash
          current_hash = hash(element.event)
  
          if current_hash not in state_action_mapping[
              hashed_state
          ] or _unlearnable_action(element.event):
              state_action_mapping[hashed_state] += [current_hash]
  
      # Keep only conflicting `state_action_mapping`s
      # or those mappings that contain `action_unlikely_intent`
      action_unlikely_intent_hash = hash(
          ActionExecuted(action_name=ACTION_UNLIKELY_INTENT_NAME)
      )
      return {
          state_hash: actions
          for (state_hash, actions) in state_action_mapping.items()
          if len(actions) > 1 or action_unlikely_intent_hash in actions
      }
  
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 2 for calling a global function with example usage: _find_conflicting_states(trackers, domain, max_history, tokenizer) and returns: unknown