<SYSTEM_TASK:>
Solve the following problem using Python, implementing the functions described below, one line at a time
<END_TASK>
<USER_TASK:>
Description:
 def getRequiredNodes(self):
 """ Returns a dict from node shape to number of nodes required to run the packed jobs. """

        return {nodeShape:len(self.nodeReservations[nodeShape]) for nodeShape in self.nodeShapes}