code: def test_url_and_params():
      assert url_and_params("https://example.com/") == (
          "https://example.com/",
          {},
      )
      assert url_and_params("https://example.com/foo?") == (
          "https://example.com/foo",
          {},
      )
      assert url_and_params("https://example.com/foo?a=b&c=d") == (
          "https://example.com/foo",
          {"a": "b", "c": "d"},
      )
  
imports: from hailtop.utils import partition, url_basename, url_join, url_scheme, url_and_params, parse_docker_image_reference, grouped
  from hailtop.utils.utils import digits_needed, unzip, filter_none, flatten
label_desc: Use image node_id 9 for calling a global function with example usage: test_url_and_params() without return types