def METHOD_NAME(packets, plot):
    bitrate = MovingAverageBitrate()
    y = [bitrate.AddPacket(packet) for packet in packets]
    plot.grid(True)
    plot.set_title("Receive birate [bps]")
    plot.plot(GetTimeAxis(packets), y)