code: def test_render_tree_hide_root_win32():
      tree = Tree("foo", hide_root=True)
      tree.add("bar", style="italic")
      baz_tree = tree.add(
          "baz", guide_style="bold red", style="on blue"
      )
      baz_tree.add("1")
      baz_tree.add("2")
      tree.add("egg")
  
      console = Console(
          width=20, force_terminal=True, color_system="standard"
      )
      console.begin_capture()
      console.print(tree)
      result = console.end_capture()
      print(repr(result))
      expected = "\x1b[3mbar\x1b[0m\n\x1b[44mbaz\x1b[0m\n\x1b[31;44m├── \x1b[0m\x1b[44m1\x1b[0m\n\x1b[31;44m└── \x1b[0m\x1b[44m2\x1b[0m\negg\n"
      assert result == expected
  
file_path: rich/tests/test_tree.py
imports: import sys
  import pytest
  from rich.console import Console
  from rich.measure import Measurement
  from rich.tree import Tree
label_desc: Use image node_id 8 for calling a global function with example usage: test_render_tree_hide_root_win32() without return types