def METHOD_NAME():
    """Tests that factor dimensions match CP_PLSR's n_components."""
    x, y, _, _ = _get_standard_synthetic()
    pls = CP_PLSR(n_components=N_LATENT)
    pls.fit(x, y)
    for x_factor in pls.X_factors:
        assert x_factor.shape[1] == N_LATENT
    for y_factor in pls.Y_factors:
        assert y_factor.shape[1] == N_LATENT