def METHOD_NAME(self, input_params, _expected_avg, _details_shape):
    dice_metric = MeanDice(**input_params)
    with self.assertRaises((AssertionError, ValueError)):
        y_pred = torch.Tensor([[0, 1], [1, 0]])
        y = torch.ones((2, 3))
        dice_metric.update([y_pred, y])
    with self.assertRaises((AssertionError, ValueError)):
        y_pred = torch.Tensor([[0, 1], [1, 0]])
        y = torch.ones((3, 2))
        dice_metric.update([y_pred, y])