Hyperparameter Optimization API

https://d2l.ai/chapter_hyperparameter-optimization/hyperopt-api.html

Can we have pseduocode for the HPO?