code: def check_settings(self, settings):
          
          assert isinstance(settings, dict)
  
          errors = []
          if not isinstance(settings, dict) or len(settings) == 0:
              errors.append('invalid_syntax')
          else:
              if not self.__sp_validation_only:
                  errors += self.check_idp_settings(settings)
              sp_errors = self.check_sp_settings(settings)
              errors += sp_errors
  
          return errors
docs: Checks the settings info.
  
          :param settings: Dict with settings data
          :type settings: dict
  
          :returns: Errors found on the settings data
          :rtype: list