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

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