def build_prompt_options(servers, extra_options):
    for server in servers:
        for option_name, option in server.get('options', {}).iteritems():
            if isinstance(option, AskFor):
                if option.key in extra_options:
                    value = extra_options[option.key]
                else:
                    value = option.get_value(server)
                server['options'][option_name] = value
dataset/ETHPy150Open python-provy/provy/provy/core/runner.py/build_prompt_options/original