<SYSTEM_TASK:>
Solve the following problem using Python, implementing the functions described below, one line at a time
<END_TASK>
<USER_TASK:>
Description:
 def check_config(self, contents):
 """Process config contents with cdrouter-cli -check-config. :param contents: Config contents as string. :return: :class:`configs.CheckConfig <configs.CheckConfig>` object :rtype: configs.CheckConfig """

        schema = CheckConfigSchema()
        resp = self.service.post(self.base,
                                 params={'process': 'check'}, json={'contents': contents})
        return self.service.decode(schema, resp)