<SYSTEM_TASK:>
Solve the following problem using Python, implementing the functions described below, one line at a time
<END_TASK>
<USER_TASK:>
Description:
 def set_register(self, register, value):
 """ Sets the value of a specific register. @type register: str @param register: Register name. @rtype: int @return: Register value. """

        context = self.get_context()
        context[register] = value
        self.set_context(context)