code: def test_check_allowlist_accepts_all_on_star() -> None:
      assert util.check_allowlist("192.168.0.1", ["*"]) is True
      assert util.check_allowlist("192.168.0.1:80", ["*"]) is True
      assert util.check_allowlist("192.168.0.1:5006", ["*"]) is True
      assert util.check_allowlist("192.168.0.1:80", ["*:80"]) is True
      assert util.check_allowlist("192.168.0.1:80", ["*:81"]) is False
      assert util.check_allowlist("192.168.0.1:5006", ["*:*"]) is True
      assert (
          util.check_allowlist("192.168.0.1", ["192.168.0.*"]) is True
      )
      assert (
          util.check_allowlist("192.168.0.1:5006", ["192.168.0.*"])
          is True
      )
      assert (
          util.check_allowlist("192.168.1.1", ["192.168.0.*"]) is False
      )
      assert util.check_allowlist("foobarbaz", ["*"]) is True
      assert (
          util.check_allowlist("192.168.0.1", ["192.168.0.*"]) is True
      )
      assert (
          util.check_allowlist("192.168.1.1", ["192.168.0.*"]) is False
      )
      assert (
          util.check_allowlist("192.168.0.1", ["192.168.0.*:5006"])
          is False
      )
      assert (
          util.check_allowlist("192.168.0.1", ["192.168.0.*:80"])
          is True
      )
      assert util.check_allowlist("foobarbaz", ["*"]) is True
      assert util.check_allowlist("foobarbaz", ["*:*"]) is True
      assert util.check_allowlist("foobarbaz", ["*:80"]) is True
      assert util.check_allowlist("foobarbaz", ["*:5006"]) is False
      assert util.check_allowlist("foobarbaz:5006", ["*"]) is True
      assert util.check_allowlist("foobarbaz:5006", ["*:*"]) is True
      assert util.check_allowlist("foobarbaz:5006", ["*:5006"]) is True
  
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 6 for calling a global function with example usage: test_check_allowlist_accepts_all_on_star() without return types