code: def test_grid_url(url, port, ground_truth) -> None:
      if not url and not port:
          assert GridURL().base_url == ground_truth
      elif not url:
          assert GridURL(port=port).base_url == ground_truth
      elif not port:
          assert GridURL(host_or_ip=url).base_url == ground_truth
      else:
          assert (
              GridURL(host_or_ip=url, port=port).base_url
              == ground_truth
          )
  
label_desc: Use image node_id 1 for calling a global function with example usage: test_grid_url(url, port, ground_truth) without return types