code: def test_script_argv(self) -> None:
      doc = Document()
      handler = bahc.CodeHandler(
          source="""import sys; raise RuntimeError("argv: %r" % sys.argv)""",
          filename="path/to/test_filename",
      )
      handler.modify_document(doc)
  
      assert handler.error is not None
      assert "argv: ['test_filename']" in handler.error
  
      doc = Document()
      handler = bahc.CodeHandler(
          source="""import sys; raise RuntimeError("argv: %r" % sys.argv)""",
          filename="path/to/test_filename",
          argv=["10", "20", "30"],
      )
      handler.modify_document(doc)
  
      assert handler.error is not None
      assert (
          "argv: ['test_filename', '10', '20', '30']" in handler.error
      )
  
file_path: bokeh/tests/unit/bokeh/application/handlers/test_code.py
imports: from __future__ import annotations
  import pytest
  from bokeh.document import Document
  import bokeh.application.handlers.code
label_desc: Use image node_id 6 for calling the TestCodeHandler obj's underlying member method code with example usage: obj.test_script_argv() without return types