def include_node(tag, node, group):
    """Given an aiida-node and a (string) tag, add the node in the curated-cof_XXX_vX group,
    and set the tag as the extra of the node for the query.
    """
    node.set_extra('curated-cof_tag', tag)
    group.add_nodes(node)
