What are the types of GridSearchCV and how does it work in machine learning using Python?

I understand how GridSearchCV operates; it performs an exhaustive search over a specified range of hyperparameter values and allows you to perform a hyperparameter tuning of a machine learning model, and its effectiveness is then assessed. I understand the distinction between this and RandomizedSearchCV. My instructor just covered the basics of this and its types in class, but she didn’t give us any code snippets to practice with. Could someone here kindly explain what its kinds are and how they operate using code snippets?