def __init__(self, *args, filename='<STR_LIT>', render=None,<EOL>divide=<NUM_LIT:1>, frames=<NUM_LIT:0>, time=<NUM_LIT:10>, speed=<NUM_LIT:1.0>, options=None,<EOL>gif_dir=None, **kwds):
super().__init__(*args, **kwds)<EOL>self.cur_step = <NUM_LIT:1><EOL>self.movie_writer = _movie_writer.MovieWriter(<EOL>filename, render, divide, frames, time, speed, options, gif_dir)<EOL>
:param str filename: Base filename to write the animated GIF file

:param dict render: Parameters to the renderer function -
    see ``bibliopixel.util.image.render.renderer``

:param int divide: If greater than 1, only rendered one in ``divide``
    frames

:param int frames: Number of frames to write

:param float time: Total time to write.  If non-zero, takes precedence
    over `frames`

:param float speed: the speed of the GIF is scaled up by this factor,
    so if speed=2 then a 2 second animation will become a 1 second GIF.

:param dict options: Options to
    ``bibliopixel.util.image.gif.write_animation``

:param str gif_dir: If set, write individual GIF frame files to this
    directory, and do not delete them when done.  For testing purposes.