def create_epub(ident_hash, file, format='raw'):
    """Creates an epub from an ``ident_hash``, which is output to the given
    ``file`` (a file-like object).
    Returns None, writes to the given ``file``.

    """
    model = factory(ident_hash, baked=(format != 'raw'))
    if isinstance(model, cnxepub.Document):
        model = cnxepub.TranslucentBinder(nodes=[model])
    cnxepub.make_epub(model, file)
Creates an epub from an ``ident_hash``, which is output to the given
    ``file`` (a file-like object).
    Returns None, writes to the given ``file``.