def METHOD_NAME(path):
    with warnings.catch_warnings(record=True) as all_warnings:
        _ = ErtConfig.from_file(path)
    return [
        str(w.message)
        for w in all_warnings
        if w.category == ConfigWarning and w.message.info.is_deprecation
    ]