def METHOD_NAME(self, ddp, metric_class, compare_fn, values, weights):
    """Test modular implementation."""
    self.run_class_metric_test(
        ddp=ddp,
        metric_class=metric_class,
        reference_metric=compare_fn,
        check_scriptable=True,
        # Abuse of names here
        preds=values,
        target=weights,
    )