">get_netid_from_name</span><span class="p">(</span><span class="n">name</span><span class="p">):</span>
<span class="w">    </span><span class="sd">&quot;&quot;&quot;</span>
<span class="sd">    Get the Network Id from the Networks table based on the NetName.</span>

<span class="sd">    Args:</span>
<span class="sd">        name (str): Network name.</span>

<span class="sd">    Returns:</span>
<span class="sd">        int or None: NetId or None if not found.</span>
<span class="sd">    &quot;&quot;&quot;<