code: def register(name, validator):
      
      if not isinstance(validator, Validator):
          raise TypeError("Validator instance expected, %s given" % validator.__class__)
      _NAMED_VALIDATORS[name] = validator
docs: Register a validator instance under the given ``name``.