code: def validate(self):
          
  
          spec = self._create_specs()
  
          # support in future
          functions = {}
  
          validator = validate.Validator(functions=functions)
  
          self.config.configspec = spec
          result = self.config.validate(validator, preserve_errors=True)
  
          if self._parse_result(result):
              return True
docs: validate whether value in config file is correct.