def METHOD_NAME(self):
    pred = torch.ones((1, 3, 3, 3, 3), dtype=torch.float, device=device)
    target = torch.ones((1, 3, 3, 3, 3), dtype=torch.float, device=device)
    with self.assertRaisesRegex(ValueError, ""):
        GlobalMutualInformationLoss(num_bins=0)(pred, target)
    with self.assertRaisesRegex(ValueError, ""):
        GlobalMutualInformationLoss(num_bins=-1)(pred, target)
    with self.assertRaisesRegex(ValueError, ""):
        GlobalMutualInformationLoss(reduction="unknown")(pred, target)
    with self.assertRaisesRegex(ValueError, ""):
        GlobalMutualInformationLoss(reduction=None)(pred, target)