code: def getRequiredNodes(self):
          
          return {nodeShape:len(self.nodeReservations[nodeShape]) for nodeShape in self.nodeShapes}
docs: Returns a dict from node shape to number of nodes required to run the packed jobs.