def METHOD_NAME(config_data: dict, alt_config_path: str | None = None) -> None:
    """Checks if there are keys missing in a given config dict, and if so, updates the
    config file accordingly. This essentially automatically ports jrnl installations
    if new config parameters are introduced in later versions. Also checks for
    existence of and difference in version number between config dict
    and current jrnl version, and if so, update the config file accordingly.
    Supply alt_config_path if using an alternate config through --config-file."""
    default_config = get_default_config()
    missing_keys = set(default_config).difference(config_data)
    if missing_keys:
        for key in missing_keys:
            config_data[key] = default_config[key]
    different_version = config_data["version"] != __version__
    if different_version:
        config_data["version"] = __version__
    if missing_keys or different_version:
        save_config(config_data, alt_config_path)
        config_path = alt_config_path if alt_config_path else get_config_path()
        print_msg(
            Message(
                MsgText.ConfigUpdated, MsgStyle.NORMAL, {"config_path": config_path}
            )
        )