code: 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 sublistf 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]
docs: Returns all formulae