def METHOD_NAME(self, X, y, scale_factor: float, mode: str):
    """Test that resizing works when X and y have different shapes."""
    _, yc = resize_batch(X, y, scale_factor, mode, resize_targets=True)
    assert check_scaled_shape(y, yc, scale_factor)