def get_or_prompt(config, key, prompt_fn, *args, **kwargs):
    value = config.get(key)
    if value is None:
        value = prompt_fn(*args, **kwargs)
        config.set(key, value)
    return value
:param config: The configuration object to get the value from
dataset/ETHPy150Open koenbok/Cactus/cactus/utils/helpers.py/get_or_prompt