def aliasByNode(requestContext, seriesList, *nodes):
    for series in seriesList:
        metric_pieces = re.search('(?:.*\()?(?P<name>[-\w*\.:#]+)(?:,|\)?.*)?',
                                  series.name).groups()[0].split('.')
        series.name = '.'.join(metric_pieces[n] for n in nodes)
    return seriesList
Takes a seriesList and applies an alias derived from one or more "node"
dataset/ETHPy150Open brutasse/graphite-api/graphite_api/functions.py/aliasByNode