def check_config(config):
for section, expected_section_keys in SECTION_KEYS.items():<EOL><INDENT>section_content = config.get(section)<EOL>if not section_content:<EOL><INDENT>raise ConfigurationError("<STR_LIT>"<EOL>.format(section))<EOL><DEDENT>elif not _section_is_healthy(section_content, expected_section_keys):<EOL><INDENT>raise ConfigurationError("<STR_LIT>"<EOL>.format(section))<EOL><DEDENT><DEDENT>
Check that all sections of the config contain the keys that they should.

    Args:
        config (defaultdict): A defaultdict.
    Raises:
        ConfigurationError