code: def validates(version):
      """
      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:
  
          collections.Callable:
  
              a class decorator to decorate the validator with the 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
  
imports: from __future__ import division
  from warnings import warn
  import contextlib
  import json
  import numbers
  from six import add_metaclass
  from jsonschema import _legacy_validators, _types, _utils, _validators, exceptions
  from jsonschema.compat import Sequence, int_types, iteritems, lru_cache, str_types, unquote, urldefrag, urljoin, urlopen, urlsplit
  from jsonschema.exceptions import ErrorTree
label_desc: Use image node_id 2 for calling a global function with example usage: validates(version) and returns: _validates, cls