<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_productivity_stats(self):
 """Return the user's productivity stats. :return: A JSON-encoded representation of the user's productivity stats. :rtype: A JSON-encoded object. """

        response = API.get_productivity_stats(self.api_token)
        _fail_if_contains_errors(response)
        return response.json()