<SYSTEM_TASK:>
Solve the following problem using Python, implementing the functions described below, one line at a time
<END_TASK>
<USER_TASK:>
Description:
 def _draw_cursor(self, char, frame_no, x, y):
 """ Draw a flashing cursor for this widget. :param char: The character to use for the cursor (when not a block) :param frame_no: The current frame number. :param x: The x coordinate for the cursor. :param y: The y coordinate for the cursor. """

        (colour, attr, bg) = self._pick_colours("edit_text")
        if frame_no % 10 < 5 or self._frame.reduce_cpu:
            attr |= Screen.A_REVERSE
        self._frame.canvas.print_at(char, x, y, colour, attr, bg)