code: def _calculate_areas(self, label):
          
          heights = np.maximum(0, label[:, 3] - label[:, 1])
          widths = np.maximum(0, label[:, 2] - label[:, 0])
          return heights * widths
docs: Calculate areas for multiple labels