code: def test_create_hosts_allowlist_no_host() -> None:
      hosts = util.create_hosts_allowlist(None, 1000)
      assert hosts == ["localhost:1000"]
  
      hosts = util.create_hosts_allowlist([], 1000)
      assert hosts == ["localhost:1000"]
  
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 7 for calling a global function with example usage: test_create_hosts_allowlist_no_host() without return types