<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_rect(self, rect):
 """Draw a rectangle on the current rendering target. Args: rect (Rect):
 The destination rectangle, or None to outline the entire rendering target. Raises: SDLError: If an error is encountered. """

        check_int_err(lib.SDL_RenderDrawRect(self._ptr, rect._ptr))