def compute_cluster_state(node_state, additional_node_states, nonmanifest_datasets):
 return DeploymentState(nodes=({node_state} | additional_node_states), nonmanifest_datasets={dataset.dataset_id: dataset for dataset in nonmanifest_datasets})

def compute_cluster_state ( node_state , additional_node_states , nonmanifest_datasets ) : return DeploymentState ( nodes = ( { node_state } | additional_node_states ) , nonmanifest_datasets = { dataset . dataset_id : dataset for dataset in nonmanifest_datasets } )
computes the cluster_state from the passed in arguments .