Built model to predict best Hyperparameters

I have a idea but i dont know if i can execution it
And how get data for it …
The idea is … built model can predict and choise best hyperparameters to any model
For examble if i built new model by n samples and m features and…
I input n and m and other data to my model (idea ) and then the model (idea) say u should set alpha =6 to ur new model and 1280 hidden layers and so on …
How can i do it and how can i get data to do it