code: def fits(self, jobShape):
          
          return jobShape.memory <= self.shape.memory and \
                 jobShape.cores <= self.shape.cores and \
                 jobShape.disk <= self.shape.disk and \
                 (jobShape.preemptable or not self.shape.preemptable)
docs: Check if a job shape's resource requirements will fit within this allocation.