code: def dict_to_url(param: dict):
      # Encode the dictionary with url-safe-base64.
      str_param = json.dumps(param)
      url_param = base64.urlsafe_b64encode(
          bytes(str_param, encoding="utf8")
      )
      return bytes.decode(url_param, encoding="utf8")
  
imports: import base64
  import json
  import os
  from ..base import path_type, stringify_path
  from ....utils import lazy_import
label_desc: Use image node_id 7 for calling a global function with example usage: dict_to_url(param) and returns: bytes