code: def launch_ios_rpc(
      udid: AnyStr,
      bundle_id: AnyStr,
      host_url: AnyStr,
      host_port: int,
      key: AnyStr,
      mode: AnyStr,
  ):  # pylint: disable=too-many-arguments, consider-using-with
      """
      Launch iOS RPC application on simulator with No UI interconnection.
  
      udid : str
          Unique device ID.
  
      bundle_id : str
          iOS RPC bundle ID.
  
      host_url : str
          The tracker/proxy address.
  
      host_port : int
          The tracker/proxy port.
  
      key : str
          The key used to identify the device type in tracker.
  
      mode : str
          Server mode. See RPCServerMode.
      """
  
      cmd = (
          f"xcrun simctl launch --console {udid} {bundle_id}"
          f" --immediate_connect"
          f" --host_url={host_url}"
          f" --host_port={host_port}"
          f" --key={key}"
          f" --server_mode={mode}"
          f" --verbose"
      )
      proc = subprocess.Popen(
          cmd.split(" "),
          stdout=subprocess.PIPE,
          stderr=subprocess.STDOUT,
          bufsize=1,
          universal_newlines=True,
      )
      return proc
  
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 10 for calling a global function with example usage: launch_ios_rpc(udid, bundle_id, host_url, host_port, key, mode) and returns: proc