def METHOD_NAME(self):
    lossA = ContrastiveLoss()
    lossB = TripletMarginLoss(0.1)
    self.assertRaises(
        AssertionError,
        lambda: MultipleLosses(
            losses={"lossA": lossA, "lossB": lossB},
            weights={"blah": 1, "lossB": 0.23},
        ),
    )
    minerA = MultiSimilarityMiner()
    self.assertRaises(
        AssertionError,
        lambda: MultipleLosses(
            losses={"lossA": lossA, "lossB": lossB},
            weights={"lossA": 1, "lossB": 0.23},
            miners={"blah": minerA},
        ),
    )