code: def init(self, host_alloc_plan):
      super(SparkRendezvousServer, self).init(host_alloc_plan)
  
      # tell the SparkDriverService about the new host allocation plan
      # in the form of rank-to-index
      ranks_to_indices = {}
      host_indices = self._driver.task_host_hash_indices()
      for slot_info in host_alloc_plan:
          ranks_to_indices[slot_info.rank] = host_indices[
              slot_info.hostname
          ][slot_info.local_rank]
      self._driver.set_ranks_to_indices(ranks_to_indices)
  
imports: from horovod.runner.http.http_server import RendezvousServer
label_desc: Use image node_id 2 for calling the SparkRendezvousServer obj's underlying member method code with example usage: obj.init(host_alloc_plan) without return types