code: def test_parse():
      result = list(_parse(r"[foo]hello[/foo][bar]world[/]\[escaped]"))
      expected = [
          (0, None, Tag(name="foo", parameters=None)),
          (10, "hello", None),
          (10, None, Tag(name="/foo", parameters=None)),
          (16, None, Tag(name="bar", parameters=None)),
          (26, "world", None),
          (26, None, Tag(name="/", parameters=None)),
          (29, "[escaped]", None),
      ]
      print(repr(result))
      assert result == expected
  
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 6 for calling a global function with example usage: test_parse() without return types