code: def test_exception_custom_html(escape):
      """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
label_desc: Use image node_id 1 for calling a global function with example usage: test_exception_custom_html(escape) without return types