code: def interactive_web(opt):
      global SHARED
  
      human_agent = LocalHumanAgent(opt)
  
      # Create model and assign it to the specified task
      agent = create_agent(opt, requireModelExists=True)
      agent.opt.log()
      SHARED["opt"] = agent.opt
      SHARED["agent"] = agent
      SHARED["world"] = create_task(opt, [human_agent, SHARED["agent"]])
  
      MyHandler.protocol_version = "HTTP/1.0"
      httpd = HTTPServer((opt["host"], opt["port"]), MyHandler)
      SHARED["server"] = httpd
      logging.info("http://{}:{}/".format(opt["host"], opt["port"]))
  
      try:
          SHARED["ready"] = True
          httpd.serve_forever()
      except KeyboardInterrupt:
          pass
      httpd.server_close()
  
imports: from http.server import BaseHTTPRequestHandler, HTTPServer
  from parlai.scripts.interactive import setup_args
  from parlai.core.agents import create_agent
  from parlai.core.worlds import create_task
  from typing import Dict, Any
  from parlai.core.script import ParlaiScript, register_script
  import parlai.utils.logging
  import json
  import time
  from parlai.agents.local_human.local_human import LocalHumanAgent
label_desc: Use image node_id 4 for calling a global function with example usage: interactive_web(opt) without return types