code: def compile_schema(self, schema):
          
          compiler = self.get_schema_compiler(schema)
  
          if compiler is None:
              raise SchemaError(_(u'Unsupported schema data type {!r}').format(type(schema).__name__))
  
          return compiler(schema)
docs: Compile the current schema into a callable validator
  
          :return: Callable validator
          :rtype: callable
          :raises SchemaError: Schema compilation error