'Creates new snapshot of a virtual machine or of all
the virtual machines in a vApp. Prior to creation of the new
snapshots, any existing user created snapshots associated
with the virtual machines are removed.
:param  node: node
:type   node: :class:`Node`
:rtype: :class:`Node`'

def ex_create_snapshot(self, node):

    snapshot_xml = ET.Element('CreateSnapshotParams', {'memory': 'true', 'name': 'name', 'quiesce': 'true', 'xmlns': 'http://www.vmware.com/vcloud/v1.5', 'xmlns:xsi': 'http://www.w3.org/2001/XMLSchema-instance'})
    ET.SubElement(snapshot_xml, 'Description').text = 'Description'
    content_type = 'application/vnd.vmware.vcloud.createSnapshotParams+xml'
    headers = {'Content-Type': content_type}
    return self._perform_snapshot_operation(node, 'createSnapshot', snapshot_xml, headers)
