sorry for my ignorance, But how do I test runtimes and the quality of the code as well as analysis of the code
people usually use pytest there is std library unittest, but it has lesser stuff, pytest can do everything unittest can. unittest makes sense only if u write library with zero dependencies in my opinion, with 5+ years very rare support. This book is literal tutorial on practical example showing how to do it This book explains more in depth all gotchas and theory behind it is extendable into learning code architecture to get properly, but those two things should be good enough probably to make you operational plus read official docs to pytest