'Creates tags for a resource (Node or StorageVolume).
:param resource: The resource to be tagged
:type resource: :class:`Node` or :class:`StorageVolume` or
:class:`VolumeSnapshot`
:param tags: A dictionary or other mapping of strings to strings,
associating tag names with tag values.
:type tags: ``dict``
:rtype: ``bool``'

def ex_create_tags(self, resource, tags):

    if (not tags):
        return
    params = {'Action': 'CreateTags', 'ResourceId.0': resource.id}
    for (i, key) in enumerate(tags):
        params[('Tag.%d.Key' % i)] = key
        params[('Tag.%d.Value' % i)] = tags[key]
    res = self.connection.request(self.path, params=params.copy()).object
    return self._get_boolean(res)
