code: def from_resolver(cls, spec_resolver):
          
          spec_validators = cls._get_spec_validators(spec_resolver)
          return validators.extend(Draft4Validator, spec_validators)
docs: Creates a customized Draft4ExtendedValidator.
  
          :param spec_resolver: resolver for the spec
          :type resolver: :class:`jsonschema.RefResolver`