def METHOD_NAME(self, adjusted, multioutput, preds, target, ref_metric, num_outputs):
    """Test the differentiability of the metric, according to its `is_differentiable` attribute."""
    self.run_differentiability_test(
        preds=preds,
        target=target,
        metric_module=partial(R2Score, num_outputs=num_outputs),
        metric_functional=r2_score,
        metric_args={"adjusted": adjusted, "multioutput": multioutput},
    )