def arbitrary_state_transformation(deployment_state):
 uuid = uuid4()
 return deployment_state.transform(['nodes', uuid], NodeState(uuid=uuid, hostname=u'catcatdog'))

def arbitrary_state_transformation ( deployment_state ) : uuid = uuid4 ( ) return deployment_state . transform ( [ 'nodes' , uuid ] , NodeState ( uuid = uuid , hostname = u'catcatdog' ) )
make some change to a deployment state .