class_docstr: Provides data for the featurization pipeline.
  
  During training as well as during inference, the converter de-duplicates the given
  data (i.e. story graph or list of messages) such that each text and intent from a
  user message and each action name and action text appears exactly once.
class_docstr_tok: ["Provides","data","for","the","featurization","pipeline",".","During","training","as","well","as","during","inference",",","the","converter","de-duplicates","the","given","data","(","i.e",".","story","graph","or","list","of","messages",")","such","that","each","text","and","intent","from","a","user","message","and","each","action","name","and","action","text","appears","exactly","once","."]
docstr: Creates a list of messages containing single user and action attributes.
  
  Each possible user text and intent and each action name and action text
  that can be found in the events of the given tracker will appear exactly once
  in the resulting messages. Moreover, each item is contained in a separate
  messsage.
  
  Args:
    tracker: a dialogue state tracker containing events
  Returns:
    a list of messages
docstr_tok: ["Creates","a","list","of","messages","containing","single","user","and","action","attributes",".","Each","possible","user","text","and","intent","and","each","action","name","and","action","text","that","can","be","found","in","the","events","of","the","given","tracker","will","appear","exactly","once","in","the","resulting","messages",".","Moreover",",","each","item","is","contained","in","a","separate","messsage",".","Args",":","tracker",":","a","dialogue","state","tracker","containing","events","Returns",":","a","list","of","messages"]
code: def convert_for_inference(
      self, tracker: DialogueStateTracker
  ) -> List[Message]:
      """Creates a list of messages containing single user and action attributes.
  
      Each possible user text and intent and each action name and action text
      that can be found in the events of the given tracker will appear exactly once
      in the resulting messages. Moreover, each item is contained in a separate
      messsage.
  
      Args:
        tracker: a dialogue state tracker containing events
      Returns:
        a list of messages
      """
      # Note: `tracker.applied_events()` doesn't convert any events to a different
      # type and hence just iterating over the events is quicker than "applying"
      # events first and then iterating over results (again).
      container = MessageContainerForCoreFeaturization()
      container.derive_messages_from_events_and_add(tracker.events)
      return container.all_messages()
  
imports: from __future__ import annotations
  from typing import Optional, Text, Dict, List, Union, Iterable, Any
  from collections.abc import ValuesView, KeysView
  from rasa.engine.graph import GraphComponent
  from rasa.engine.storage.storage import ModelStorage
  from rasa.engine.storage.resource import Resource
  from rasa.engine.graph import ExecutionContext
  from rasa.shared.core.domain import Domain, SubState
  from rasa.shared.core.events import ActionExecuted, UserUttered, Event
  from rasa.shared.core.trackers import DialogueStateTracker
  from rasa.shared.core.training_data.structures import StoryGraph
  from rasa.shared.nlu.constants import ACTION_NAME, ACTION_TEXT, INTENT, TEXT
  from rasa.shared.nlu.training_data.message import Message
  from rasa.shared.nlu.training_data.training_data import TrainingData
  from rasa.shared.nlu.training_data.features import Features
  import rasa.shared.utils.io
label_desc: Use image node_id 3 for calling the CoreFeaturizationInputConverter obj's underlying member method code with example usage: obj.convert_for_inference(tracker) and returns: container