'Associate tag with the provided resource.
:param resource: Resource to associate a tag with.
:type resource: :class:`libcloud.compute.base.Node` or
:class:`.CloudSigmaDrive`
:param tag: Tag to associate with the resources.
:type tag: :class:`.CloudSigmaTag`
:return: Updated tag object.
:rtype: :class:`.CloudSigmaTag`'

def ex_tag_resource(self, resource, tag):

    if (not hasattr(resource, 'id')):
        raise ValueError("Resource    doesn't    have    id    attribute")
    return self.ex_tag_resources(resources=[resource], tag=tag)
