docstr: Create a ChatServiceManager using the given setup options.
docstr_tok: ["Create","a","ChatServiceManager","using","the","given","setup","options","."]
code: def __init__(self, opt: Opt):
      """
      Create a ChatServiceManager using the given setup options.
      """
      # Manager attributes
      self.opt = opt
      self.server_url = None
      self.port = 443
      self.agent_pool_change_condition = threading.Condition()
      self.active_worlds: Dict[str, Future] = {}
      self.socket = None
      self.sender = None
      self.running = True
      self.conversation_index = 0
      self.shutting_down = False
      self.bypass_server_setup = self.opt.get("bypass_server_setup")
  
      # Messaging interaction functions that determine what to do when
      # messages are confirmed as delivered, marked as read by a user, and
      # noted as read by the bot.
      self.confirm_message_delivery = self._confirm_message_delivery
      self.handle_message_read = self._handle_message_read
      self.handle_bot_read = self._handle_bot_read
  
imports: from abc import ABC, abstractmethod
  from asyncio import Future
  import copy
  import sys
  import logging
  import datetime
  import threading
  import time
  import traceback
  from typing import Dict, Any, Optional, List, Callable
  from parlai.chat_service.core.agents import ChatServiceAgent
  import parlai.chat_service.utils.logging
  import parlai.chat_service.utils.misc
  import parlai.chat_service.utils.server
  from parlai.chat_service.core.world_runner import ChatServiceWorldRunner
  from parlai.core.opt import Opt
label_desc: Use image node_id 1 to create a new ChatServiceManager object from inherited base classes: ABC with example: obj = ChatServiceManager(opt)