code: def test_tree():
      layout = Layout(name="root")
      layout.split(Layout("foo", size=2), Layout("bar", name="bar"))
      layout["bar"].split_row(Layout(), Layout())
  
      console = Console(width=60, color_system=None)
  
      with console.capture() as capture:
          console.print(layout.tree, height=10)
      result = capture.get()
      print(repr(result))
      expected = "⬍ Layout(name='root')\n├── ⬍ Layout(size=2)\n└── ⬌ Layout(name='bar')\n    ├── ⬍ Layout()\n    └── ⬍ Layout()\n"
      print(result, "\n", expected)
      assert result == expected
  
file_path: rich/tests/test_layout.py
imports: import sys
  import pytest
  from rich.console import Console
  from rich.layout import Layout, NoSplitter
  from rich.panel import Panel
label_desc: Use image node_id 5 for calling a global function with example usage: test_tree() without return types