<SYSTEM_TASK:>
Solve the following problem using Python, implementing the functions described below, one line at a time
<END_TASK>
<USER_TASK:>
Description:
 def create(self, resource):
 """Create a new config. :param resource: :class:`configs.Config <configs.Config>` object :return: :class:`configs.Config <configs.Config>` object :rtype: configs.Config """

        schema = self.CREATE_SCHEMA
        json = self.service.encode(schema, resource)

        schema = self.GET_SCHEMA
        resp = self.service.create(self.base, json)
        return self.service.decode(schema, resp)