">from</span> <span class="nn">itertools</span> <span class="kn">import</span> <span class="n">islice</span>

<span class="n">space</span> <span class="o">=</span>  <span class="s1">&#39;    &#39;</span>
<span class="n">branch</span> <span class="o">=</span> <span class="s1">&#39;│   &#39;</span>
<span class="n">tee</span> <span class="o">=</span>    <span class="s1">&#39;├── &#39;</span>
<span class="n">last</span> <span class="o">=</span>   <span class="s1">&#39;└── &#39;</span>

<div class=