class_docstr: Manages interactions between agents on messenger as well as direct interactions
  between agents and the messenger overworld.
docstr: Prepare the Messenger server for handling messages.
docstr_tok: ["Prepare","the","Messenger","server","for","handling","messages","."]
code: def setup_server(self):
      """
      Prepare the Messenger server for handling messages.
      """
      if self.bypass_server_setup:
          return
  
      log_utils.print_and_log(
          logging.INFO,
          "\nYou are going to allow people on Facebook to be agents in "
          "ParlAI.\nDuring this process, Internet connection is required, "
          "and you should turn off your computer's auto-sleep "
          "feature.\n",
          should_print=True,
      )
      input("Please press Enter to continue... ")
      log_utils.print_and_log(logging.NOTSET, "", True)
  
      if self.opt["local"] is True:
          log_utils.print_and_log(
              logging.INFO,
              "In order to run the server locally, you will need "
              "to have a public HTTPS endpoint (SSL signed) running on "
              "the server you are currently executing ParlAI on. Enter "
              "that public URL hostname when prompted and ensure that the "
              "port being used by ParlAI (usually 3000) has external "
              "traffic routed to it.",
              should_print=True,
          )
          input("Please press Enter to continue... ")
  
      log_utils.print_and_log(
          logging.INFO,
          "Setting up Messenger webhook...",
          should_print=True,
      )
  
      # Setup the server with a task name related to the current task
      task_name = "{}-{}".format("ParlAI-Messenger", self.opt["task"])
      self.server_task_name = "".join(
          e for e in task_name.lower() if e.isalnum() or e == "-"
      )
      self.server_url = server_utils.setup_server(
          self.server_task_name, local=self.opt["local"]
      )
      log_utils.print_and_log(
          logging.INFO,
          "Webhook address: {}/webhook".format(self.server_url),
          should_print=True,
      )
  
imports: import logging
  import os
  from parlai.core.agents import create_agent
  import parlai.chat_service.utils.logging
  import parlai.chat_service.utils.server
  from parlai.utils.io import PathManager
  from parlai.chat_service.services.messenger.agents import MessengerAgent
  from parlai.chat_service.core.socket import ChatServiceMessageSocket
  from parlai.chat_service.services.messenger.message_sender import MessageSender
  from parlai.chat_service.core.chat_service_manager import ChatServiceManager
label_desc: Use image node_id 15 for calling the MessengerManager obj's underlying member method code with example usage: obj.setup_server() without return types