code: def mapSeries(requestContext, seriesList, mapNode):
      
      metaSeries = {}
      keys = []
      for series in seriesList:
          key = series.name.split(".")[mapNode]
          if key not in metaSeries:
              metaSeries[key] = [series]
              keys.append(key)
          else:
              metaSeries[key].append(series)
      return [metaSeries[k] for k in keys]
docs: Short form: ``map()``.
  
      Takes a seriesList and maps it to a list of sub-seriesList. Each
      sub-seriesList has the given mapNode in common.
  
      Example (note: This function is not very useful alone. It should be used
      with :py:func:`reduceSeries`)::
  
          mapSeries(servers.*.cpu.*,1) =>
              [
                  servers.server1.cpu.*,
                  servers.server2.cpu.*,
                  ...
                  servers.serverN.cpu.*
              ]