code: def test_markup_error():
      with pytest.raises(MarkupError):
          assert render("foo[/]")
      with pytest.raises(MarkupError):
          assert render("foo[/bar]")
      with pytest.raises(MarkupError):
          assert render("[foo]hello[/bar]")
  
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 16 for calling a global function with example usage: test_markup_error() without return types