I think you can get rid of "If Yes call the reset() function" in the docstring, since that's obvious by reading the code.

Or you can also rename the function to be more descriptive, e.g. `reset_on_confirm()`