<SYSTEM_TASK:>
Solve the following problem using Python, implementing the functions described below, one line at a time
<END_TASK>
<USER_TASK:>
Description:
 def ms_contrast_restore(self, viewer, event, data_x, data_y, msg=True):
 """An interactive way to restore the colormap contrast settings after a warp operation. """

        if self.cancmap and (event.state == 'down'):
            self.restore_contrast(viewer, msg=msg)
        return True