code: def on_open(ws):
      """
      Starts a new thread that loops, taking user input and sending it to the websocket.
  
      :param ws: websocket.WebSocketApp that sends messages to a browser_manager
      """
      threading.Thread(target=_run_browser).start()
  
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 6 for calling a global function with example usage: on_open(ws) without return types