<SYSTEM_TASK:>
Solve the following problem using Python, implementing the functions described below, one line at a time
<END_TASK>
<USER_TASK:>
Description:
 def _packet_timeout(self, packet, now):
 """ Check packet for timeout. """

        if now >= packet["timeout"]:
            # timed out
            return False

        if now >= packet["resend"]:
            # resend command
            self._send_command(packet)
            return False

        # keep packet
        return True