def METHOD_NAME(frame_count, actual_frame, expected_frame):
    global error, max_error
    for blk in range(actual_frame.nr_blocks):
        for ch in range(actual_frame.nr_channels):
            M = mse(actual_frame.audio_sample[blk][ch], expected_frame.audio_sample[blk][ch])
            if M > max_error:
                max_error = M
        if max_error > error:
            print ("audio_sample error (%d, %f ) " % (frame_count, max_error))
            print (actual_frame.audio_sample[blk])
            print (expected_frame.audio_sample[blk])
            return -1
    return 0 