def stabilize(video, writer):
    """
    Stabilizes a video and outputs to a writer.

    :param video: an iterable of cv2 images/np.ndarrays.
    :param writer: cv2.VideoWriter object.
    """
    pass
