<SYSTEM_TASK:>
Solve the following problem using Python, implementing the functions described below, one line at a time
<END_TASK>
<USER_TASK:>
Description:
 def click(self, x, y, button=1, n=1):
 """ Click a mouse button n times on a given x, y. Button is defined as 1 = left, 2 = right, 3 = middle. """


        for i in range(n):
            self.press(x, y, button)
            self.release(x, y, button)