def sanitize_config(config):
if '<STR_LIT>' in config:<EOL><INDENT>if '<STR_LIT>' not in config:<EOL><INDENT>raise ConfigError('<STR_LIT>')<EOL><DEDENT><DEDENT>else:<EOL><INDENT>config['<STR_LIT>'] = {}<EOL><DEDENT>if '<STR_LIT>' not in config:<EOL><INDENT>config['<STR_LIT>'] = {}<EOL><DEDENT>return config<EOL>
check that the config has the correct keys, add missing keys if necessary