<SYSTEM_TASK:>
Solve the following problem using Python, implementing the functions described below, one line at a time
<END_TASK>
<USER_TASK:>
Description:
 def setwinsize(self, rows, cols):
 """Set the terminal window size of the child tty. """

        self._winsize = (rows, cols)
        self.pty.set_size(cols, rows)