class="n">branches</span><span class="p">,</span> <span class="n">probabilities</span><span class="p">)):</span>
                <span class="n">branch_name</span><span class="p">,</span> <span class="n">_</span><span class="p">,</span> <span class="n">value</span><span class="p">,</span> <span class="n">next_node</span> <span class="o">=</span> <span class="n">branch</span>
                <span class="n">branches</span><span class="p">[</span><span class="n">i_branch</span><span class="p">]</span> <span c