def update_node_attrs(graph, node_id, attrs, normalize=True):
    """Update attributes of a node.

    Parameters
    ----------
    graph : regraph.Graph
    node_id : hashable, node to update.
    attrs : dict
        New attributes to assign to the node

    Raises
    ------
    GraphError
        If a node with the specified id does not exist.

    """
    graph.update(node_id, attrs, normalize=normalize)
