<SYSTEM_TASK:>
Solve the following problem using Python, implementing the functions described below, one line at a time
<END_TASK>
<USER_TASK:>
Description:
 def get_redirects(self, request):
 """Return iterator of redirects for given request."""

        kwargs = self.get_request_kwargs()
        return self.session.resolve_redirects(self.url_connection,
            request, **kwargs)