def model_from_configuration(deployment_state, applications, deployment_configuration):
 nodes = deployment_from_configuration(deployment_state, deployment_configuration, applications)
 return Deployment(nodes=frozenset(nodes))

def model_from_configuration ( deployment_state , applications , deployment_configuration ) : nodes = deployment_from_configuration ( deployment_state , deployment_configuration , applications ) return Deployment ( nodes = frozenset ( nodes ) )
validate and coerce the supplied application configuration and deployment configuration dictionaries into a deployment instance .