def _get_config_callback(commands_to_run):
    config_callback = None
    if len(commands_to_run) != 1:
        raise Exception('Multiple commands are not supported')

    c = commands_to_run[0][0]
    module, command = c.split('.')

    module_dict = state.commands[module]
    command_callable = module_dict[command]

    try:
        config_callback = command_callable.pa_config_callback
    except __HOLE__:
        pass

    return config_callback
dataset/ETHPy150Open prestodb/presto-admin/prestoadmin/main.py/_get_config_callback