def METHOD_NAME(self, y_true, y_pred):
    """Computes localization and classification losses in a batch.
    # Arguments
        y_true: Tensor of shape '[batch_size, num_boxes, 4 + num_classes]'
            with correct labels.
        y_pred: Tensor of shape '[batch_size, num_boxes, 4 + num_classes]'
            with predicted inferences.
    # Returns
        Tensor with loss per sample in batch.
    """
    localization_loss = self.localization(y_true, y_pred)
    positive_loss = self.positive_classification(y_true, y_pred)
    negative_loss = self.negative_classification(y_true, y_pred)
    return localization_loss + positive_loss + negative_loss