class_docstr: Manages interactions between agents on a websocket as well as direct interactions
  between agents and an overworld.
class_docstr_tok: ["Manages","interactions","between","agents","on","a","websocket","as","well","as","direct","interactions","between","agents","and","an","overworld","."]
docstr: Starts the tornado application.
docstr_tok: ["Starts","the","tornado","application","."]
code: def _make_app(self):
      """
      Starts the tornado application.
      """
      message_callback = self._on_new_message
  
      options["log_to_stderr"] = True
      tornado.options.parse_command_line([])
  
      return tornado.web.Application(
          [
              (
                  r"/websocket",
                  MessageSocketHandler,
                  {
                      "subs": self.subs,
                      "message_callback": message_callback,
                  },
              )
          ],
          debug=self.debug,
      )
  
imports: import json
  import asyncio
  import logging
  from parlai.core.agents import create_agent
  from parlai.chat_service.core.chat_service_manager import ChatServiceManager
  import parlai.chat_service.utils.logging
  import parlai.chat_service.utils.misc
  from parlai.chat_service.services.websocket.sockets import MessageSocketHandler
  from .agents import WebsocketAgent
  import tornado
  from tornado.options import options
label_desc: Use image node_id 10 for calling the WebsocketManager obj's underlying member method code with example usage: obj._make_app() and returns: tornado