code: def validates(version):
      
  
      def _validates(cls):
          validators[version] = cls
          meta_schema_id = cls.ID_OF(cls.META_SCHEMA)
          if meta_schema_id:
              meta_schemas[meta_schema_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.
  
      Arguments:
  
          version (str):
  
              An identifier to use as the version's name
  
      Returns:
  
          callable: a class decorator to decorate the validator with the version