code: def do_rendezvous(sess: api.Session, allocation_id: str) -> None:
      r_id = os.environ.get("DET_RESOURCES_ID")
      assert (
          r_id
      ), "Unable to complete rendezvous info without DET_RESOURCES_ID"
  
      r_type = os.environ.get("DET_RESOURCES_TYPE")
      assert (
          r_type
      ), "Unable to complete rendezvous info without DET_RESOURCES_TYPE"
  
      rendezvous_info = None
      if (
          r_type == RESOURCES_TYPE_DOCKER_CONTAINER
          or r_type == RESOURCES_TYPE_K8S_POD
      ):
          rendezvous_info = do_rendezvous_rm_provided(
              sess, allocation_id, r_id
          )
      elif r_type == RESOURCES_TYPE_SLURM_JOB:
          rendezvous_info = do_rendezvous_slurm(
              sess, allocation_id, r_id
          )
      else:
          raise ValueError(f"unsupported resources type: {r_type}")
  
      rendezvous_info._to_file()
  
imports: import argparse
  import base64
  import io
  import json
  import logging
  import os
  import socket
  import tarfile
  import uuid
  import warnings
  from typing import List, Optional
  import psutil
  import urllib3
  import determined
  import determined.util
  from determined import constants, gpu
  from determined.common import api, util
  from determined.common.api import bindings, certs
label_desc: Use image node_id 9 for calling a global function with example usage: do_rendezvous(sess, allocation_id) without return types