<SYSTEM_TASK:>
Solve the following problem using Python, implementing the functions described below, one line at a time
<END_TASK>
<USER_TASK:>
Description:
 def override(self, value):
 """Temporarily overrides the old value with the new one."""

        if self._value is not value:
            return _ScopedValueOverrideContext(self, value)
        else:
            return empty_context