<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_option(self, name, value):

 """Sets an option's value"""

        _assert_value_is_valid(name)
        self._options[name] = value