def set_cover(container, cover_path, report=None, options=None):
 report = (report or (lambda x: x))
 if (container.book_type == u'azw3'):
  set_azw3_cover(container, cover_path, report, options=options)
 else:
  set_epub_cover(container, cover_path, report, options=options)

def set_cover ( container , cover_path , report = None , options = None ) : report = ( report or ( lambda x : x ) ) if ( container . book_type == u'azw3' ) : set_azw3_cover ( container , cover_path , report , options = options ) else : set_epub_cover ( container , cover_path , report , options = options )
set the cover of the book to the image pointed to by cover_path .