<SYSTEM_TASK:>
Solve the following problem using Python, implementing the functions described below, one line at a time
<END_TASK>
<USER_TASK:>
Description:
 def _debug_mode_responses(self, request, response):
 """Extra functionality available in debug mode. - If pretty printed output was requested, force the content type to text. This causes the browser to not try to format the output in any way. - If SQL profiling is turned on, return a page with SQL query timing information instead of the actual response. """

        if django.conf.settings.DEBUG_GMN:
            if 'pretty' in request.GET:
                response['Content-Type'] = d1_common.const.CONTENT_TYPE_TEXT
            if (
                'HTTP_VENDOR_PROFILE_SQL' in request.META
                or django.conf.settings.DEBUG_PROFILE_SQL
            ):
                response_list = []
                for query in django.db.connection.queries:
                    response_list.append('{}\n{}'.format(query['time'], query['sql']))
                return django.http.HttpResponse(
                    '\n\n'.join(response_list), d1_common.const.CONTENT_TYPE_TEXT
                )
        return response