def __init__(self, path):
_check_imageio()<EOL>if not path.endswith('<STR_LIT>'):<EOL><INDENT>path += '<STR_LIT>'<EOL><DEDENT>self.writer = imageio.get_writer(path, mode='<STR_LIT:I>', loop=<NUM_LIT:1>)<EOL>
Args:
    path: The file path to save gif.