code: def dict2bibtex(data):
      
      bibtex = '@' + data['ENTRYTYPE'] + '{' + data['ID'] + ",\n"
  
      for field in [i for i in sorted(data) if i not in ['ENTRYTYPE', 'ID']]:
          bibtex += "\t" + field + "={" + data[field] + "},\n"
      bibtex += "}\n\n"
      return bibtex
docs: Convert a single BibTeX entry dict to a BibTeX string.
  
      :param data: A dict representing BibTeX entry, as the ones from \
              ``bibtexparser.BibDatabase.entries`` output.
      :return: A formatted BibTeX string.