<SYSTEM_TASK:>
Solve the following problem using Python, implementing the functions described below, one line at a time
<END_TASK>
<USER_TASK:>
Description:
 def getActivationsDict(self, nameList):
 """ Returns a dictionary of layer names that map to a list of activations. """

        retval = {}
        for name in nameList:
            retval[name] = self.layersByName[name].getActivationsList()
        return retval