def check_settings(self, settings):
assert isinstance(settings, dict)<EOL>errors = []<EOL>if not isinstance(settings, dict) or len(settings) == <NUM_LIT:0>:<EOL><INDENT>errors.append('<STR_LIT>')<EOL><DEDENT>else:<EOL><INDENT>if not self.__sp_validation_only:<EOL><INDENT>errors += self.check_idp_settings(settings)<EOL><DEDENT>sp_errors = self.check_sp_settings(settings)<EOL>errors += sp_errors<EOL><DEDENT>return errors<EOL>
Checks the settings info.

:param settings: Dict with settings data
:type settings: dict

:returns: Errors found on the settings data
:rtype: list