pan class="k">def</span><span class="w"> </span><span class="nf">sample_prices</span><span class="p">(</span><span class="n">freq</span><span class="p">:</span> <span class="nb">str</span> <span class="o">=</span> <span class="s2">&quot;daily&quot;</span><span class="p">,</span> <span class="o">*</span><span class="p">,</span> <span class="n">max_bars</span><span class="p">:</span> <span class="nb">int</span> <span class="o">=</span> <span class="mi">0</span><span class="p">,</span> <span class="n">item</sp