code: def session_id_encode_to_str(session_id_bytes: bytes) -> str:
      return base64.urlsafe_b64encode(session_id_bytes).decode("ascii")
  
imports: from typing import Optional, Dict, Tuple
  import base64
  import collections.abc
  import os
  import json
  import logging
  from hailtop.config import get_deploy_config
  from hailtop.utils import first_extant_file
label_desc: Use image node_id 1 for calling a global function with example usage: session_id_encode_to_str(session_id_bytes) and returns: base64