code: def test_request_bad_syntax(self) -> None:
      result: dict[str, Handler] = {}
  
      def load(filename: str):
          handler = basrh.ServerRequestHandler(filename=filename)
          result["handler"] = handler
  
      with_file_contents("This is a syntax error", load)
  
      handler = result["handler"]
      assert handler.error is not None
      assert "Invalid syntax" in handler.error
  
file_path: bokeh/tests/unit/bokeh/application/handlers/test_server_request_handler.py
imports: from __future__ import annotations
  import pytest
  from bokeh.application.handlers.handler import Handler
  from tests.support.util.filesystem import with_file_contents
  import bokeh.application.handlers.server_request_handler
label_desc: Use image node_id 1 for calling the Test_ServerRequestHandler obj's underlying member method code with example usage: obj.test_request_bad_syntax() without return types