def get_all_formulae(chebi_ids):
    '''Returns all formulae'''
    all_formulae = [get_formulae(chebi_id) for chebi_id in chebi_ids]
    return [x for sublist in all_formulae for x in sublist]
Returns all formulae