code: def on_error(ws, error):
      """
      Prints an error, if occurs.
  
      :param ws: WebSocketApp
      :param error: An error
      """
      print(error)
  
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 3 for calling a global function with example usage: on_error(ws, error) without return types