o be label-encoded. Default is an empty list.</span>
<span class="sd">        to_drop (list, optional): List of columns to be dropped from the DataFrame. Default is an empty list.</span>

<span class="sd">    Returns:</span>
<span class="sd">        torch.utils.data.TensorDataset: Processed data as a PyTorch TensorDataset.</span>
<span class="sd">    &quot;&quot;&quot;</span>

    <span class="c1"># Check if there is a DataSet assigned to the node</span>
    <span class="k">if</span> <span class="p">(</span