code: def _click(x, y, button):
      
      if button == 'left':
          try:
              _sendMouseEvent(MOUSEEVENTF_LEFTCLICK, x, y)
          except (PermissionError, OSError): # TODO: We need to figure out how to prevent these errors, see https://github.com/asweigart/pyautogui/issues/60
              pass
      elif button == 'middle':
          try:
              _sendMouseEvent(MOUSEEVENTF_MIDDLECLICK, x, y)
          except (PermissionError, OSError): # TODO: We need to figure out how to prevent these errors, see https://github.com/asweigart/pyautogui/issues/60
              pass
      elif button == 'right':
          try:
              _sendMouseEvent(MOUSEEVENTF_RIGHTCLICK, x, y)
          except (PermissionError, OSError): # TODO: We need to figure out how to prevent these errors, see https://github.com/asweigart/pyautogui/issues/60
              pass
      else:
          assert False, "button argument not in ('left', 'middle', 'right')"
docs: Send the mouse click event to Windows by calling the mouse_event() win32
      function.
  
      Args:
        button (str): The mouse button, either 'left', 'middle', or 'right'
        x (int): The x position of the mouse event.
        y (int): The y position of the mouse event.
  
      Returns:
        None