code: def write_epub(name, book, options=None):
      
      epub = EpubWriter(name, book, options)
  
      epub.process()
  
      try:
          epub.write()
      except IOError:
          pass
docs: Creates epub file with the content defined in EpubBook.
  
      >>> ebooklib.write_epub('book.epub', book)
  
      :Args:
        - name: file name for the output file
        - book: instance of EpubBook
        - options: extra opions as dictionary (optional)