def __setstate__(self, state):
<EOL>if "<STR_LIT>" in state:<EOL><INDENT>state.pop("<STR_LIT>")<EOL><DEDENT>if "<STR_LIT>" in state:<EOL><INDENT>state["<STR_LIT>"] = state.pop("<STR_LIT>")<EOL><DEDENT>if "<STR_LIT>" in state:<EOL><INDENT>state['<STR_LIT>'] = state.pop('<STR_LIT>')<EOL><DEDENT>if "<STR_LIT>" in state:<EOL><INDENT>state['<STR_LIT>'] = state.pop('<STR_LIT>')<EOL><DEDENT>self.__dict__.update(state)<EOL>for x in state['<STR_LIT>']:<EOL><INDENT>setattr(x, '<STR_LIT>', self._model)<EOL>x._reaction.add(self)<EOL><DEDENT>for x in state['<STR_LIT>']:<EOL><INDENT>setattr(x, '<STR_LIT>', self._model)<EOL>x._reaction.add(self)<EOL><DEDENT>
Probably not necessary to set _model as the cobra.Model that
        contains self sets the _model attribute for all metabolites and genes
        in the reaction.

        However, to increase performance speed we do want to let the metabolite
        and gene know that they are employed in this reaction