<SYSTEM_TASK:>
Solve the following problem using Python, implementing the functions described below, one line at a time
<END_TASK>
<USER_TASK:>
Description:
 def text(self):
 """ Get the raw text for the response """

        try:
            return self._text
        except AttributeError:
            if IS_PYTHON_3:
                encoding = self._response.headers.get_content_charset("utf-8")
            else:
                encoding = self._response.headers.getparam("charset")
            self._text = self._response.read().decode(encoding or "utf-8")
        return self._text