Reset OpenMV Cam programmatically

Hi, I am working in an environment without a graphical session and would like to programmatically reset the OpenMV Cam (i.e. the functionality provided by the OpenMV IDE via the menu item Tools → Reset OpenMV Cam). Could you point me to where the reset functionality is implemented? Thank you very much in advance!

Hi, it’s under the pub module:

https://docs.openmv.io/library/pyb.html?highlight=reset#pyb.hard_reset