Grouped lasso model over 50,100, 150 and 200 respectively using function cv.glmnet in the glmnet package

How can I write r code to tune optimal shrinkage parameters for a model over 50,100, 150 and 200 respectively using function cv.glmnet in the glmnet package.

I have used cv.glmnet to fit a grouped lasso but was unable to reach my objectives.
Thanks

Please take a look at the homework policy:

Though I've never used grouped LASSO (or even LASSO) for logistic regression, I think you can give it a try using grplasso package.