<SYSTEM_TASK:>
Solve the following problem using Python, implementing the functions described below, one line at a time
<END_TASK>
<USER_TASK:>
Description:
 def on_mouse_release(self, x: int, y: int, button, mods):

 """
 Handle mouse release events and forward to example window
 """

        if button in [1, 4]:
            self.example.mouse_release_event(
                x, self.buffer_height - y,
                1 if button == 1 else 2,
            )