code: def validates(version):
      
  
      def _validates(cls):
          validators[version] = cls
          if u"id" in cls.META_SCHEMA:
              meta_schemas[cls.META_SCHEMA[u"id"]] = cls
          return cls
      return _validates
docs: Register the decorated validator for a ``version`` of the specification.
  
      Registered validators and their meta schemas will be considered when
      parsing ``$schema`` properties' URIs.
  
      :argument str version: an identifier to use as the version's name
      :returns: a class decorator to decorate the validator with the version