def METHOD_NAME(g):
    """This was useful during the development of wipe and gradient_wipe.
    Usage: write_video(gradient_wipe())"""
    import cv2
    vw = cv2.VideoWriter("test.avi", cv2.VideoWriter_fourcc('M', 'J', 'P', 'G'),
                         30, (1280, 720))
    for frame in g:
        vw.write(frame)
    vw.release()