ass="n">name</span><span class="p">):</span>
<span class="w">    </span><span class="sd">&quot;&quot;&quot;</span>
<span class="sd">    Get the NodeId from the Nodes table based on the NodeName.</span>

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

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

    <span class="n">NodeId</span> <span class="o">=</span> <