def METHOD_NAME(self, ddp, preds, targets, information_measure, idf, alpha, beta):
    """Test class implementation of metric."""
    metric_args = {
        "model_name_or_path": MODEL_NAME,
        "information_measure": information_measure,
        "idf": idf,
        "alpha": alpha,
        "beta": beta,
        "max_length": MAX_LENGTH,
    }
    reference_metric = partial(
        reference_infolm_score,
        model_name=MODEL_NAME,
        information_measure=information_measure,
        idf=idf,
        alpha=alpha,
        beta=beta,
    )
    self.run_class_metric_test(
        ddp=ddp,
        preds=preds,
        targets=targets,
        metric_class=InfoLM,
        reference_metric=reference_metric,
        metric_args=metric_args,
        check_scriptable=False,  # huggingface transformers are not usually scriptable
    )