<SYSTEM_TASK:>
Solve the following problem using Python, implementing the functions described below, one line at a time
<END_TASK>
<USER_TASK:>
Description:
 def diff_stats(self, ids):
 """Compute diff stats for a set of results. :param id: Result IDs as int list. :return: :class:`results.DiffStats <results.DiffStats>` object :rtype: results.DiffStats """

        schema = DiffStatsSchema()
        resp = self.service.post(self.base, params={'stats': 'diff'}, json=[{'id': str(x)} for x in ids])
        return self.service.decode(schema, resp)