class_docstr: Internal proxy server handler class.
class_docstr_tok: ["Internal","proxy","server","handler","class","."]
docstr: tracker mode to handle handler ready.
docstr_tok: ["tracker","mode","to","handle","handler","ready","."]
code: def _handler_ready_tracker_mode(self, handler):
      """tracker mode to handle handler ready."""
      if handler.rpc_key.startswith("server:"):
          key = base.random_key(
              handler.match_key, cmap=self._server_pool
          )
          handler.match_key = key
          self._server_pool[key] = handler
          self._tracker_pending_puts.append(key)
          self._update_tracker()
      else:
          if handler.match_key in self._server_pool:
              self._pair_up(
                  self._server_pool.pop(handler.match_key), handler
              )
          else:
              handler.send_data(
                  struct.pack("<i", base.RPC_CODE_MISMATCH)
              )
              handler.signal_close()
  
imports: import os
  import asyncio
  import logging
  import socket
  import threading
  import errno
  import struct
  import time
  from tvm.contrib.popen_pool import PopenWorker
  from .None import _ffi_api
  from .None import base
  from .base import TrackerCode
  from .server import _server_env
  from .._ffi.base import py_str
label_desc: Use image node_id 6 for calling the ProxyServerHandler obj's underlying member method code with example usage: obj._handler_ready_tracker_mode(handler) without return types