def METHOD_NAME(config, batch_or_shell, cluster=None):
    config = config["general"]["batch"].write_simple_runscript(
        config, cluster, batch_or_shell
    )
    if not check_if_check(config):
        config = submit(config)
    return config