code: def test_exception_custom_html():
      """Checks whether exceptions in custom __html__ implementations are
      propagated correctly.
  
      There was a bug in the native implementation at some point:
      https://github.com/pallets/markupsafe/issues/108
      """
      obj = CustomHtmlThatRaises()
      with pytest.raises(ValueError):
          escape(obj)
  
imports: import pytest
  from markupsafe import escape
label_desc: Use image node_id 1 for calling a global function with example usage: test_exception_custom_html() without return types