def METHOD_NAME():
    tree = Tree("foo")
    tree.add("bar")
    tree.add("baz")
    class AsciiConsole(Console):
        @property
        def encoding(self):
            return "ascii"
    console = AsciiConsole(color_system=None, width=20)
    console.begin_capture()
    console.print(tree)
    result = console.end_capture()
    expected = "foo\n+-- bar\n`-- baz\n"
    assert result == expected