def METHOD_NAME(frameworks: Namespace):
    frameworks_with_unknown_parent = [
        (name, framework.extends) for name, framework in frameworks
        if "extends" in framework and framework.extends not in frameworks
    ]
    for framework, parent in frameworks_with_unknown_parent:
        log.warning("Removing framework %s as parent %s doesn't exist.", framework, parent)
        del frameworks[framework]