code: def on_message(ws, message):
      """
      Prints the incoming message from the server.
  
      :param ws: a WebSocketApp
      :param message: json with 'text' field to be printed
      """
      incoming_message = json.loads(message)
      global new_message
      new_message = incoming_message["text"]
      message_available.set()
  
imports: import json
  import websocket
  import threading
  from parlai.core.params import ParlaiParser
  from parlai.scripts.interactive_web import WEB_HTML, STYLE_SHEET, FONT_AWESOME
  from http.server import BaseHTTPRequestHandler, HTTPServer
label_desc: Use image node_id 2 for calling a global function with example usage: on_message(ws, message) without return types