def METHOD_NAME(self, X: torch.Tensor, y: torch.Tensor, mode: str, scale_factor: float):
    """Test that resizing outputs works."""
    _, yc = resize_batch(X, y, scale_factor, mode, resize_targets=True)
    assert check_scaled_shape(y, yc, scale_factor)