def show_frequencies(video_filename, bounds=None):
    original_video, fps = load_video(video_filename)
    print(fps)
    averages = []

    if bounds:
        for x in range(1, original_video.shape[0] - 1):
            averages.append(original_video[x, bounds[2]:bounds[3], bounds[0]:bounds[1], :].sum())
    else:
        for x in range(1, original_video.shape[0] - 1):
            averages.append(original_video[x, :, :, :].sum())

    charts_x = 1
    charts_y = 2
    pyplot.figure(figsize=(charts_y, charts_x))
    pyplot.subplots_adjust(hspace=.7)

    pyplot.subplot(charts_y, charts_x, 1)
    pyplot.title("Pixel Average")
    pyplot.plot(averages)

    frequencies = scipy.fftpack.fftfreq(len(averages), d=1.0 / fps)

    pyplot.subplot(charts_y, charts_x, 2)
    pyplot.title("FFT")
    pyplot.axis([0, 15, -2000000, 5000000])
    pyplot.plot(frequencies, scipy.fftpack.fft(averages))

    pyplot.show()
Expected assignment_unlimited_args_kwargs __doc__
dataset/ETHPy150Open brycedrennan/eulerian-magnification/eularian_magnification/base.py/show_frequencies--crossover with--dataset/ETHPy150Open AppScale/appscale/AppServer/lib/django-1.4/tests/regressiontests/templates/templatetags/custom.py/assignment_unlimited_args_kwargs