code: def test_parse_link():
      result = list(_parse("[link=foo]bar[/link]"))
      expected = [
          (0, None, Tag(name="link", parameters="foo")),
          (13, "bar", None),
          (13, None, Tag(name="/link", parameters=None)),
      ]
      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 7 for calling a global function with example usage: test_parse_link() without return types