def get_coefficient(self, metabolite_id):
if isinstance(metabolite_id, Metabolite):<EOL><INDENT>return self._metabolites[metabolite_id]<EOL><DEDENT>_id_to_metabolites = {m.id: m for m in self._metabolites}<EOL>return self._metabolites[_id_to_metabolites[metabolite_id]]<EOL>
Return the stoichiometric coefficient of a metabolite.

Parameters
----------
metabolite_id : str or cobra.Metabolite