code: def test_events_broken():
      with pytest.raises(MarkupError):
          render("[@click=sdfwer(sfs)]foo[/]")
  
      with pytest.raises(MarkupError):
          render("[@click='view.toggle]foo[/]")
  
imports: import pytest
  from rich.console import Console
  from rich.errors import MarkupError
  from rich.markup import RE_TAGS, Tag, _parse, escape, render
  from rich.text import Span, Text
label_desc: Use image node_id 20 for calling a global function with example usage: test_events_broken() without return types