def METHOD_NAME(self, squared, preds, target, ref_metric, num_outputs):
    """Test functional implementation of metric."""
    self.run_functional_metric_test(
        preds,
        target,
        relative_squared_error,
        partial(ref_metric, squared=squared),
        metric_args={"squared": squared},
    )