def METHOD_NAME(self, preds, targets, substitution_cost, reduction):
    """Test functional implementation of metric."""
    self.run_functional_metric_test(
        preds=preds,
        targets=targets,
        metric_functional=edit_distance,
        reference_metric=partial(_ref_implementation, substitution_cost=substitution_cost, reduction=reduction),
        metric_args={"substitution_cost": substitution_cost, "reduction": reduction},
    )