class_docstr: Context manager for ServerIOSLauncher.
  To work with ServerIOSLauncher, it is preferable to use this class
  so that the terminate method is called in any case.
class_docstr_tok: ["Context","manager","for","ServerIOSLauncher",".","To","work","with","ServerIOSLauncher",",","it","is","preferable","to","use","this","class","so","that","the","terminate","method","is","called","in","any","case","."]
code: def __init__(self, mode, host, port, key):
      self.__mode = mode
      self.__host = host
      self.__port = port
      self.__key = key
      self.__ios_rpc_server_launcher = None
  
imports: import os
  import json
  import time
  import threading
  import subprocess
  from enum import Enum
  from typing import Dict, List, AnyStr
label_desc: Use image node_id 1 to create a new ServerIOSContextManager object  with example: obj = ServerIOSContextManager(mode, host, port, key)