def to_node(node_state):
 return Node(uuid=node_state.uuid, hostname=node_state.hostname, applications=(node_state.applications or {}), manifestations=(node_state.manifestations or {}))

def to_node ( node_state ) : return Node ( uuid = node_state . uuid , hostname = node_state . hostname , applications = ( node_state . applications or { } ) , manifestations = ( node_state . manifestations or { } ) )
convert a nodestate to a corresponding node .