def relabel_node(graph, node_id, new_id):
    """Relabel a node in the graph.

    Parameters
    ----------
    graph : regraph.Graph
    node_id : id of a node to relabel.
    new_id : hashable, new label of a node.
    """
    graph.relabel_node(node_id, new_id)
