def METHOD_NAME(config, jobtype=None, list_of_clusters=None, nextrun_in=False):
    nextrun = False
    if not list_of_clusters:
        list_of_clusters = config["general"]["workflow"]["subjob_clusters"][
            jobtype
        ].get("next_submit", [])
    for cluster in list_of_clusters:
        if (
            cluster == config["general"]["workflow"]["first_task_in_queue"]
            and not nextrun_in
        ):
            nextrun = True
        else:
            if not workflow.skip_cluster(cluster, config):
                submission_type = get_submission_type(cluster, config)
                if submission_type == "SimulationSetup":
                    resubmit_SimulationSetup(config, cluster)
                elif submission_type in ["batch", "shell"]:
                    resubmit_batch_or_shell(config, submission_type, cluster)
            else:
                print(f"Skipping {cluster}")
                nextrun = (
                    METHOD_NAME(config, jobtype=cluster, nextrun_in=nextrun_in)
                    or nextrun
                )
    return nextrun