/span>
    <span class="k">return</span> <span class="p">{</span>
        <span class="n">k</span><span class="p">:</span> <span class="n">master_dict</span><span class="p">[</span><span class="n">k</span><span class="p">]</span>
        <span class="k">for</span> <span class="n">k</span> <span class="ow">in</span> <span class="n">subkeys</span>
        <span class="k">if</span> <span class="n">k</span> <span class="ow">in</span> <span class="n">master_dict</span> <span class="ow">and</span> <span class="n"