class_docstr: Converts the user message into a NLU Message object.
docstr: Converts user message into Message object.
  
  Args:
      messages: The user messages which should be converted to be processed by
          the NLU components.
  
  Returns:
      List containing only one instance of Message.
      Else empty list if user message is None.
code: def convert_user_message(
      self, messages: List[UserMessage]
  ) -> List[Message]:
      """Converts user message into Message object.
  
      Args:
          messages: The user messages which should be converted to be processed by
              the NLU components.
  
      Returns:
          List containing only one instance of Message.
          Else empty list if user message is None.
      """
      return [
          Message(
              data={
                  TEXT: message.text,
                  "message_id": message.message_id,
                  "metadata": message.metadata,
              },
              output_properties={TEXT_TOKENS},
          )
          for message in messages
      ]
  
file_path: rasa/rasa/graph_components/converters/nlu_message_converter.py
imports: from __future__ import annotations
  from typing import Dict, Text, Any, List
  from rasa.core.channels.channel import UserMessage
  from rasa.engine.graph import GraphComponent, ExecutionContext
  from rasa.engine.storage.resource import Resource
  from rasa.engine.storage.storage import ModelStorage
  from rasa.shared.nlu.constants import TEXT, TEXT_TOKENS
  from rasa.shared.nlu.training_data.message import Message
label_desc: Use image node_id 2 for calling the NLUMessageConverter obj's underlying member method code with example usage: obj.convert_user_message(messages) and returns: unknown