code: def test_die(capsys: Capture) -> None:
      with pytest.raises(SystemExit):
          util.die("foo")
      out, err = capsys.readouterr()
      assert err == "foo\n"
      assert out == ""
  
file_path: bokeh/tests/unit/bokeh/command/test_util__command.py
imports: from __future__ import annotations
  import pytest
  import os
  import tempfile
  from unittest.mock import MagicMock, patch
  from tests.support.util.types import Capture
  import bokeh.command.util
label_desc: Use image node_id 1 for calling a global function with example usage: test_die(capsys) without return types