code: def _build_user_message(output_channel, text):
      return UserMessage(
          text=text, sender_id=SENDER, output_channel=output_channel
      )
  
file_path: rasa/tests/regressions/test_action_extract_slots_11333.py
imports: import os
  from pathlib import Path
  from tempfile import TemporaryDirectory
  from typing import Text
  import pytest
  from rasa import train
  from rasa.core.agent import load_agent
  from rasa.core.channels import UserMessage, CollectingOutputChannel
label_desc: Use image node_id 2 for calling a global function with example usage: _build_user_message(output_channel, text) and returns: UserMessage