def METHOD_NAME(bibdb, filename):
    """
    Creates bib file 
    Parameters
    ----------
    bibdb : bibtexparser.bibdatabase.BibDatabase
        bib database 
    file : str 
        filename
    """
    writer = BibTexWriter()
    with open(filename, 'w') as bibfile:
        bibfile.write(writer.write(bibdb))