code: def create(self, resource):
          
          schema = PackageSchema(exclude=('id', 'created', 'updated', 'test_count', 'agent_id', 'result_id'))
          json = self.service.encode(schema, resource)
  
          schema = PackageSchema()
          resp = self.service.create(self.base, json)
          return self.service.decode(schema, resp)
docs: Create a new package.
  
          :param resource: :class:`packages.Package <packages.Package>` object
          :return: :class:`packages.Package <packages.Package>` object
          :rtype: packages.Package