code: def test_render_meta():
      console = Console()
      text = render("foo[@click=close]bar[/]baz")
      assert text.get_style_at_offset(console, 3).meta == {
          "@click": ("close", ())
      }
  
      text = render("foo[@click=close()]bar[/]baz")
      assert text.get_style_at_offset(console, 3).meta == {
          "@click": ("close", ())
      }
  
      text = render("foo[@click=close('dialog')]bar[/]baz")
      assert text.get_style_at_offset(console, 3).meta == {
          "@click": ("close", ("dialog",))
      }
      text = render("foo[@click=close('dialog', 3)]bar[/]baz")
      assert text.get_style_at_offset(console, 3).meta == {
          "@click": ("close", ("dialog", 3))
      }
  
      text = render("foo[@click=(1, 2, 3)]bar[/]baz")
      assert text.get_style_at_offset(console, 3).meta == {
          "@click": (1, 2, 3)
      }
  
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 21 for calling a global function with example usage: test_render_meta() without return types