def GetNodeRole(r, node):
    """
    Gets the current role for a node.

    @type node: str
    @param node: node whose role to return

    @rtype: str
    @return: the current role for a node
    """
    return r.request('get', '/2/nodes/%s/role' % node)
