def METHOD_NAME(sizes):
    module = FactorizedLinear(in_features=sizes[0], out_features=sizes[1], latent_features=sizes[2])
    X = torch.randn(2, module.in_features)
    with pytest.raises(ValueError):
        module.set_rank(X, sizes[3])