def makeVariableJsonFile(save_dir, node_name):
    vars_file = os.path.join(save_dir, 'bkb_variables.pk')
    command = ['ssh', node_name, 'python3', os.path.join(BKB_PATHWAY_CORE_DIR, 'driver.py'), '--config_file', os.path.join(BKB_PATHWAY_CORE_DIR, 'driver.config'), '--get_variables', vars_file]
    subprocess.run(command)
    with open(vars_file, 'rb') as f_:
        vars_dict = pickle.load(f_)
    return vars_dict
def makeVariableJsonFile(save_dir, node_name):
    vars_file = os.path.join(save_dir, 'bkb_variables.pk')
    command = ['ssh', node_name, 'python3', os.path.join(BKB_PATHWAY_CORE_DIR, 'driver.py'), '--config_file', os.path.join(BKB_PATHWAY_CORE_DIR, 'driver.config'), '--get_variables', vars_file]
    subprocess.run(command)
    with open(vars_file, 'rb') as f_:
        vars_dict = pickle.load(f_)
    return vars_dict