def</span> <span class="nf">distribution</span><span class="p">(</span><span class="n">data</span><span class="p">:</span> <span class="n">Dict</span><span class="p">[</span><span class="nb">str</span><span class="p">,</span> <span class="n">Union</span><span class="p">[</span>
    <span class="n">List</span><span class="p">[</span><span class="n">Dict</span><span class="p">],</span>
    <span class="n">List</span><span class="p">[</span><span class="s1">&#39;torch.Tensor&#39;</span><span class="p">],</span