<SYSTEM_TASK:>
Solve the following problem using Python, implementing the functions described below, one line at a time
<END_TASK>
<USER_TASK:>
Description:
 def is_permanent_redirect(self):
 """True if this Response one of the permanent versions of redirect."""

        return ('location' in self.headers and self.status_code in (codes.moved_permanently, codes.permanent_redirect))