def METHOD_NAME(
    self, opt: Opt, test_name: str, data_regression: DataRegressionFixture
):
    """
    Calculate and check distillation loss terms.
    Given the input opt, run eval and check each of the loss terms to make sure that
    they match what is expected.
    """
    valid, _ = testing_utils.eval_model(opt, skip_test=True)
    losses = {}
    loss_types = self.LOSS_TYPES[test_name]
    for loss_type in loss_types:
        losses[loss_type] = round_sig(valid[loss_type].value(), sig=6)
    basename = self._get_model_identifier() + '_' + test_name
    data_regression.check(losses, basename=basename)