Adds tags to a node.

    @type node: str
    @param node: node to add tags to
    @type tags: list of str
    @param tags: tags to add to the node
    @type dry_run: bool
    @param dry_run: whether to perform a dry run

    @rtype: int
    @return: job id

def AddNodeTags(r, node, tags, dry_run=False):
    """
    Adds tags to a node.

    @type node: str
    @param node: node to add tags to
    @type tags: list of str
    @param tags: tags to add to the node
    @type dry_run: bool
    @param dry_run: whether to perform a dry run

    @rtype: int
    @return: job id
    """

    query = {
        "tag": tags,
        "dry-run": dry_run,
    }

    return r.request("put", "/2/nodes/%s/tags" % node, query=query,
                     content=tags)