code: def get_url(
      address: str,
      port: int,
      proxy_url: str = None,
      **kwargs: t.Dict[str, str],
  ) -> str:
      context = _get_context()
  
      if context == _COLAB:
          # pylint: disable=no-name-in-module,import-error
          from google.colab.output import eval_js
  
          _url = eval_js(f"google.colab.kernel.proxyPort({port})")
          kwargs["polling"] = "true"
      elif _context == _DATABRICKS:
          _url = _get_databricks_proxy_url(port)
          kwargs["proxy"] = _get_databricks_proxy(port)
          kwargs["context"] = "databricks"
      elif proxy_url:
          _url = (
              proxy_url if proxy_url.endswith("/") else f"{proxy_url}/"
          )
          path = urlparse(_url).path
          if path != "/":
              kwargs["proxy"] = path
      else:
          _url = f"http://{address}:{port}/"
  
      if "proxy" in kwargs:
          kwargs["polling"] = "true"
  
      params = "&".join([f"{k}={v}" for k, v in kwargs.items()])
      if params:
          _url = f"{_url}?{params}"
  
      return _url
  
file_path: fiftyone/fiftyone/core/context.py
imports: import json
  import os
  import typing
  from urllib.parse import urlparse
label_desc: Use image node_id 7 for calling a global function with example usage: get_url(address, port, proxy_url) and returns: _url