code: def register_validator(validator):
          
          if hasattr(validator, "EXTS") and hasattr(validator, "run"):
              ValidatorFactory.PLUGINS.append(validator)
          else:
              raise ValidatorException("Validator does not have 'run' method or EXTS variable!")
docs: Register a Validator class for file verification.
  
          :param validator:
          :return: