<SYSTEM_TASK:>
Solve the following problem using Python, implementing the functions described below, one line at a time
<END_TASK>
<USER_TASK:>
Description:
 def get_compound_reactions(self, compound_id):
 """Iterate over all reaction ids the includes the given compound"""

        if compound_id not in self._compound_set:
            raise ValueError('Compound not in model: {}'.format(compound_id))

        for reaction_id in self._database.get_compound_reactions(compound_id):
            if reaction_id in self._reaction_set:
                yield reaction_id