docstr: Tests that format_syntax_error_message produces expected output
docstr_tok: ["Tests","that","format_syntax_error_message","produces","expected","output"]
code: def test_format_syntax_error_message(self):
      """Tests that format_syntax_error_message produces expected output"""
      err = SyntaxError(
          "invalid syntax",
          ("syntax_hilite.py", 84, 23, "st.header(header_text))\n"),
      )
  
      expected = """
  File "syntax_hilite.py", line 84
    st.header(header_text))
                          ^
  SyntaxError: invalid syntax
  """
      self.assertEqual(
          expected.strip(), _format_syntax_error_message(err)
      )
  
imports: import os
  import unittest
  from parameterized import parameterized
  import streamlit
  from streamlit import errors
  from streamlit.elements import exception
  from streamlit.elements.exception import _GENERIC_UNCAUGHT_EXCEPTION_TEXT, _format_syntax_error_message
  from streamlit.errors import StreamlitAPIException, UncaughtAppException
  from streamlit.proto.Exception_pb2 import Exception
  from tests import testutil
  from tests.delta_generator_test_case import DeltaGeneratorTestCase
label_desc: Use image node_id 1 for calling the ExceptionProtoTest obj's underlying member method code with example usage: obj.test_format_syntax_error_message() without return types