code: def test_no_script(capsys: Capture) -> None:
      with TmpDir(prefix="bokeh-json-no-script") as dirname:
          with WorkingDir(dirname):
              with pytest.raises(SystemExit):
                  main(["bokeh", "json"])
          out, err = capsys.readouterr()
          too_few = "the following arguments are required: DIRECTORY-OR-SCRIPT"
          assert (
              err
              == f"""usage: bokeh json [-h] [--indent LEVEL] [-o FILENAME] [--args ...]
                    DIRECTORY-OR-SCRIPT [DIRECTORY-OR-SCRIPT ...]
  bokeh json: error: {too_few}
  """
          )
          assert out == ""
  
file_path: bokeh/tests/unit/bokeh/command/subcommands/test_json__subcommands.py
imports: from __future__ import annotations
  import pytest
  import argparse
  import os
  from bokeh.command.bootstrap import main
  from bokeh.command.subcommand import Argument
  from tests.support.util.filesystem import TmpDir, WorkingDir, with_directory_contents
  from tests.support.util.types import Capture
  from _util_subcommands import basic_scatter_script
  import bokeh.command.subcommands.json
label_desc: Use image node_id 5 for calling a global function with example usage: test_no_script(capsys) without return types