code: def test_bind_sockets_with_zero_port() -> None:
      ss, port = util.bind_sockets("127.0.0.1", 0)
      assert isinstance(ss, list)
      assert len(ss) == 1
      assert isinstance(ss[0], socket.socket)
      assert isinstance(port, int)
      ss[0].close()
  
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 1 for calling a global function with example usage: test_bind_sockets_with_zero_port() without return types