class_docstr: Creates full dialogue training data for time distributed architectures.
  
  Creates training data that uses each time output for prediction.
class_docstr_tok: ["Creates","full","dialogue","training","data","for","time","distributed","architectures",".","Creates","training","data","that","uses","each","time","output","for","prediction","."]
docstr: Transforms trackers to states for prediction.
  
  Args:
      trackers: The trackers to transform.
      domain: The domain.
      use_text_for_last_user_input: Indicates whether to use text or intent label
          for featurizing last user input.
      ignore_rule_only_turns: If True ignore dialogue turns that are present
          only in rules.
      rule_only_data: Slots and loops,
          which only occur in rules but not in stories.
      ignore_action_unlikely_intent: Whether to remove any states containing
          `action_unlikely_intent` from prediction states.
  
  Returns:
      Trackers as states for prediction.
docstr_tok: ["Transforms","trackers","to","states","for","prediction",".","Args",":","trackers",":","The","trackers","to","transform",".","domain",":","The","domain",".","use_text_for_last_user_input",":","Indicates","whether","to","use","text","or","intent","label","for","featurizing","last","user","input",".","ignore_rule_only_turns",":","If","True","ignore","dialogue","turns","that","are","present","only","in","rules",".","rule_only_data",":","Slots","and","loops",",","which","only","occur","in","rules","but","not","in","stories",".","ignore_action_unlikely_intent",":","Whether","to","remove","any","states","containing","`","action_unlikely_intent","`","from","prediction","states",".","Returns",":","Trackers","as","states","for","prediction","."]
code: def prediction_states(
      self,
      trackers: List[DialogueStateTracker],
      domain: Domain,
      use_text_for_last_user_input: bool = False,
      ignore_rule_only_turns: bool = False,
      rule_only_data: Optional[Dict[Text, Any]] = None,
      ignore_action_unlikely_intent: bool = False,
  ) -> List[List[State]]:
      """Transforms trackers to states for prediction.
  
      Args:
          trackers: The trackers to transform.
          domain: The domain.
          use_text_for_last_user_input: Indicates whether to use text or intent label
              for featurizing last user input.
          ignore_rule_only_turns: If True ignore dialogue turns that are present
              only in rules.
          rule_only_data: Slots and loops,
              which only occur in rules but not in stories.
          ignore_action_unlikely_intent: Whether to remove any states containing
              `action_unlikely_intent` from prediction states.
  
      Returns:
          Trackers as states for prediction.
      """
      trackers_as_states = [
          self._create_states(
              tracker,
              domain,
              ignore_rule_only_turns=ignore_rule_only_turns,
              rule_only_data=rule_only_data,
          )
          for tracker in trackers
      ]
  
      if ignore_action_unlikely_intent:
          trackers_as_states = [
              self._remove_action_unlikely_intent_from_states(states)
              for states in trackers_as_states
          ]
  
      self._choose_last_user_input(
          trackers_as_states, use_text_for_last_user_input
      )
  
      return trackers_as_states
  
imports: from __future__ import annotations
  from pathlib import Path
  from collections import defaultdict
  from abc import abstractmethod
  import jsonpickle
  import logging
  from tqdm import tqdm
  from typing import Tuple, List, Optional, Dict, Text, Union, Any, Iterator, Set, DefaultDict, cast
  import numpy
  from rasa.core.featurizers.single_state_featurizer import SingleStateFeaturizer
  from rasa.core.featurizers.precomputation import MessageContainerForCoreFeaturization
  from rasa.core.exceptions import InvalidTrackerFeaturizerUsageError
  import rasa.shared.core.trackers
  import rasa.shared.utils.io
  from rasa.shared.nlu.constants import TEXT, INTENT, ENTITIES, ACTION_NAME
  from rasa.shared.nlu.training_data.features import Features
  from rasa.shared.core.trackers import DialogueStateTracker
  from rasa.shared.core.domain import State, Domain
  from rasa.shared.core.events import Event, ActionExecuted, UserUttered
  from rasa.shared.core.constants import USER, ACTION_UNLIKELY_INTENT_NAME, PREVIOUS_ACTION
  from rasa.shared.exceptions import RasaException
  from rasa.utils.tensorflow.constants import LABEL_PAD_ID
  from rasa.utils.tensorflow.model_data import ragged_array_to_ndarray
label_desc: Use image node_id 2 for calling the FullDialogueTrackerFeaturizer obj's underlying member method code with example usage: obj.prediction_states(trackers, domain, use_text_for_last_user_input, ignore_rule_only_turns, rule_only_data, ignore_action_unlikely_intent) and returns: trackers_as_states