docstr: Test that StreamlitAPIExceptions don't include Streamlit entries
  in the stack trace.
docstr_tok: ["Test","that","StreamlitAPIExceptions","do","n't","include","Streamlit","entries","in","the","stack","trace","."]
code: def test_strip_streamlit_stack_entries(self):
      """Test that StreamlitAPIExceptions don't include Streamlit entries
      in the stack trace.
  
      """
      # Create a StreamlitAPIException.
      err = None
      try:
          st.image("http://not_an_image.png", width=-1)
      except StreamlitAPIException as e:
          err = e
      self.assertIsNotNone(err)
  
      # Marshall it.
      proto = ExceptionProto()
      exception.marshall(proto, err)
  
      # The streamlit package should not appear in any stack entry.
      streamlit_dir = os.path.dirname(st.__file__)
      streamlit_dir = os.path.join(os.path.realpath(streamlit_dir), "")
      for line in proto.stack_trace:
          self.assertNotIn(
              streamlit_dir, line, "Streamlit stack entry not stripped"
          )
  
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 3 for calling the ExceptionProtoTest obj's underlying member method code with example usage: obj.test_strip_streamlit_stack_entries() without return types