code: def run(opt):
      """
      Run TerminalManager.
      """
      opt["service"] = SERVICE_NAME
      manager = TerminalManager(opt)
      try:
          manager.start_task()
      finally:
          manager.shutdown()
  
imports: from parlai.core.params import ParlaiParser
  from parlai.chat_service.services.terminal_chat.terminal_manager import TerminalManager
  import parlai.chat_service.utils.config
label_desc: Use image node_id 2 for calling a global function with example usage: run(opt) without return types