code: def test_match_host() -> None:
      assert util.match_host("192.168.0.1:80", "192.168.0.1:80") is True
      assert util.match_host("192.168.0.1:80", "192.168.0.1") is True
      assert (
          util.match_host("192.168.0.1:80", "192.168.0.1:8080") is False
      )
      assert util.match_host("192.168.0.1", "192.168.0.2") is False
      assert util.match_host("192.168.0.1", "192.168.*.*") is True
      assert util.match_host("alice", "alice") is True
      assert util.match_host("alice:80", "alice") is True
      assert util.match_host("alice", "bob") is False
      assert (
          util.match_host("foo.example.com", "foo.example.com.net")
          is False
      )
      assert util.match_host("alice", "*") is True
      assert util.match_host("alice", "*:*") is True
      assert util.match_host("alice:80", "*") is True
      assert util.match_host("alice:80", "*:80") is True
      assert util.match_host("alice:8080", "*:80") is False
  
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 12 for calling a global function with example usage: test_match_host() without return types