      :return: A list of `TimeRange` objects representing the moving windows.</span>
<span class="sd">        :rtype: list of TimeRange</span>
<span class="sd">        &quot;&quot;&quot;</span>
        <span class="k">if</span> <span class="ow">not</span> <span class="nb">isinstance</span><span class="p">(</span><span class="n">window_size</span><span class="p">,</span> <span class="n">TimeDelta</span><span class="p">):</span>
            <span class="n">window_size</span> <span class="o">=</span> <span cla