@staticmethod<EOL><INDENT>def _sanitize_config(config):<DEDENT>
if '<STR_LIT>' in config:<EOL><INDENT>checks = config['<STR_LIT>']<EOL>if '<STR_LIT>' not in checks:<EOL><INDENT>checks['<STR_LIT>'] = []<EOL><DEDENT>if '<STR_LIT>' not in checks:<EOL><INDENT>checks['<STR_LIT>'] = []<EOL><DEDENT><DEDENT>else:<EOL><INDENT>raise ConfigError('<STR_LIT>')<EOL><DEDENT>if '<STR_LIT>' not in config:<EOL><INDENT>L.debug('<STR_LIT>')<EOL>config['<STR_LIT>'] = {}<EOL><DEDENT>if '<STR_LIT>' not in config:<EOL><INDENT>config['<STR_LIT>'] = False<EOL><DEDENT>return config<EOL>
check that the config has the correct keys, add missing keys if necessary