code: def test_create_hosts_allowlist_host_value_with_port_use_port() -> (
      None
  ):
      hosts = util.create_hosts_allowlist(["foo:1000"], 1000)
      assert hosts == ["foo:1000"]
  
      hosts = util.create_hosts_allowlist(
          ["foo:1000", "bar:2100"], 1000
      )
      assert hosts == ["foo:1000", "bar:2100"]
  
file_path: bokeh/tests/unit/bokeh/server/test_util.py
imports: from __future__ import annotations
  import pytest
  import socket
  import bokeh.server.util
label_desc: Use image node_id 8 for calling a global function with example usage: test_create_hosts_allowlist_host_value_with_port_use_port() without return types