code: def test_uncaught_app_exception(self):
      err = None
      try:
          st.format("http://not_an_image.png", width=-1)
      except Exception as e:
          err = UncaughtAppException(e)
      self.assertIsNotNone(err)
  
      # Marshall it.
      proto = ExceptionProto()
      exception.marshall(proto, err)
  
      for line in proto.stack_trace:
          # assert message that could contain secret information in the stack trace
          assert (
              "module 'streamlit' has no attribute 'format'" not in line
          )
  
      assert proto.message == _GENERIC_UNCAUGHT_EXCEPTION_TEXT
      assert proto.type == "AttributeError"
  
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 4 for calling the ExceptionProtoTest obj's underlying member method code with example usage: obj.test_uncaught_app_exception() without return types