def METHOD_NAME(config, cluster):
    task_list = []
    clusterconfig = config["general"]["next_clusters"][cluster]
    for subjob in clusterconfig["subjobs"]:
        task_list.append(tasks_of_one_subjob(config, cluster, subjob))
    return task_list
    for component in config["general"]["valid_model_names"]:
        post_file.write(40 * "+ " + "\n")
        post_file.write("Generating post-processing tasks for: %s \n" % component)
        post_task_list.append("\n#Postprocessing %s\n" % component)
        post_task_list.append(
            "cd " + config[component]["experiment_outdata_dir"] + "\n"
        )
        pconfig_tasks = config[component].get("postprocess_tasks", {})
        pconfig_scripts = config[component].get("postprocessing_scripts", {})
        post_file.write("Configuration for post processing: %s \n" % pconfig_tasks)
        for script in pconfig_scripts:
            postscript_name = pconfig_scripts.get("postprocessing_script_name", None)
            postscript_dir = pconfig_scripts.get("postprocessing_dir", None)
            envscript_name = pconfig_scripts.get("postprocessing_envscript_name", None)
            postscript_name = assemble_filename(postscript_name, postscript_dir, config)
            envscript_name = assemble_filename(envscript_name, postscript_dir, config)
            if envscript_name:
                environment_dict = envscript_name(config)
                post_task_list += export_string(environment_dict)
            if postscript_name:
                post_task_list.append(postscript_name)
        post_task_list.append("cd -\n")
        config["general"]["post_task_list"] = post_task_list
    return config