def _sbase_notes_dict(sbase, notes):
if notes and len(notes) > <NUM_LIT:0>:<EOL><INDENT>tokens = ['<STR_LIT>'] +["<STR_LIT>".format(k, v) for (k, v) in notes.items()] +["<STR_LIT>"]<EOL>_check(<EOL>sbase.setNotes("<STR_LIT:\n>".join(tokens)),<EOL>"<STR_LIT>".format(sbase)<EOL>)<EOL><DEDENT>
Set SBase notes based on dictionary.

    Parameters
    ----------
    sbase : libsbml.SBase
        SBML object to set notes on
    notes : notes object
        notes information from cobra object