<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_response_page(request, return_type, template_location, response_page_type):
 """ Helper function to get an appropriate response page if it exists. This function is not designed to be used directly as a view. It is a helper function which can be called to check if a ResponsePage exists for a ResponsePage type (which is also active). :param request: :param return_type: :param template_location: :param response_page_type: :return: """

    try:
        page = models.ResponsePage.objects.get(
            is_active=True,
            type=response_page_type,
        )
        template = loader.get_template(template_location)
        content_type = None

        body = template.render(
            RequestContext(request, {'request_path': request.path, 'page': page, })
        )
        return return_type(body, content_type=content_type)
    except models.ResponsePage.DoesNotExist:
        return None