<SYSTEM_TASK:>
Solve the following problem using Python, implementing the functions described below, one line at a time
<END_TASK>
<USER_TASK:>
Description:
 def write_epub(name, book, options=None):
 """ Creates epub file with the content defined in EpubBook. :Args: - name: file name for the output file - book: instance of EpubBook - options: extra opions as dictionary (optional) """

    epub = EpubWriter(name, book, options)

    epub.process()

    try:
        epub.write()
    except IOError:
        pass