def setup_runnable()

in utils/run_in_ci.py [0:0]


def setup_runnable(file, input_uuid=None):
    global config_json

    file_absolute = pathlib.Path(file).resolve()
    json_file_data = ""
    with open(file_absolute, "r") as json_file:
        json_file_data = json_file.read()

    # Load the JSON data
    config_json = json.loads(json_file_data)

    # Make sure required parameters are all there
    if not 'language' in config_json or not 'runnable_file' in config_json \
       or not 'runnable_region' in config_json or not 'runnable_main_class' in config_json:
        return -1

    # Preprocess runnable arguments (get secret data, etc)
    setup_result = setup_json_arguments_list(file, input_uuid)
    if setup_result != 0:
        return setup_result

    print("JSON config file loaded!")
    return 0