">if</span> <span class="n">pid</span> <span class="ow">is</span> <span class="kc">None</span><span class="p">:</span>   
        <span class="n">bot</span><span class="o">.</span><span class="n">warning</span><span class="p">(</span><span class="s2">&quot;A &#39;pid&#39; parameter is required to use the monitor_pid_task function.&quot;</span><span class="p">)</span>
        <span class="k">return</span> <span class="n">pid</span>

    <span class="c1"># The user is allowed to provide a process name, or a n