'Build an EC2ReservedNode object using the reserved instance properties.
Information on these properties can be found at http://goo.gl/ulXCC7.'

def _to_reserved_node(self, element):

    extra = self._get_extra_dict(element, RESOURCE_EXTRA_ATTRIBUTES_MAP['reserved_node'])
    try:
        size = [size for size in self.list_sizes() if (size.id == extra['instance_type'])][0]
    except IndexError:
        size = None
    return EC2ReservedNode(id=findtext(element=element, xpath='reservedInstancesId', namespace=NAMESPACE), state=findattr(element=element, xpath='state', namespace=NAMESPACE), driver=self, size=size, extra=extra)
