def METHOD_NAME(app_config_schema, app_modules_metadata: list[dict]):
    """
    CONVENTION:
        Every section in the config-file (except for 'version' and 'main')
        is named after an application's subsystem
    """
    expected_sections = [
        metadata["config_section"] for metadata in app_modules_metadata
    ] + [
        "version",
        "main",
    ]
    assert sorted(expected_sections) == sorted(set(expected_sections)), "no repetitions"
    sections_in_schema = [section.name for section in app_config_schema.keys]
    assert sorted(sections_in_schema) == sorted(expected_sections)