code: def test_build_url():
      assert (
          utils.build_url(8080, "localhost") == "http://localhost:8080"
      )
      assert (
          utils.build_url(8080, "http://localhost")
          == "http://localhost:8080"
      )
      assert (
          utils.build_url(8080, "https://localhost")
          == "https://localhost:8080"
      )
  
file_path: dtale/tests/dtale/test_utils.py
imports: from collections import namedtuple
  import mock
  import numpy
  import pandas
  import pytest
  from six import PY3
  import dtale.utils
  from tests import ExitStack
label_desc: Use image node_id 8 for calling a global function with example usage: test_build_url() without return types