'Take XML object containing a compute node description and convert to
Node object.
Take XML representation containing a compute node description and
convert to Node object.
:type  compute: :class:`ElementTree`
:param compute: XML representation of a compute node.
:rtype:  :class:`Node`
:return: The newly extracted :class:`Node`.'

def _to_node(self, compute):

    try:
        state = self.NODE_STATE_MAP[compute.findtext('STATE').upper()]
    except KeyError:
        state = NodeState.UNKNOWN
    return Node(id=compute.findtext('ID'), name=compute.findtext('NAME'), state=state, public_ips=self._extract_networks(compute), private_ips=[], driver=self.connection.driver, image=self._extract_images(compute), size=self._extract_size(compute), extra={'context': self._extract_context(compute)})
