def create_or_update(cluster_config_file, min_workers, max_workers, no_restart,
                     restart_only, yes, cluster_name):
    """Create or update a Ray cluster."""
    if restart_only or no_restart:
        assert restart_only != no_restart, "Cannot set both 'restart_only' " \
            "and 'no_restart' at the same time!"
    create_or_update_cluster(cluster_config_file, min_workers, max_workers,
                             no_restart, restart_only, yes, cluster_name)
def create_or_update ( cluster_config_file , min_workers , max_workers , no_restart , restart_only , yes , cluster_name ) : if restart_only or no_restart : assert restart_only != no_restart , "Cannot set both 'restart_only' " "and 'no_restart' at the same time!" create_or_update_cluster ( cluster_config_file , min_workers , max_workers , no_restart , restart_only , yes , cluster_name )
Create or update a Ray cluster.