How do you deactivate the setup tips/tutorial Programmatically?

Hi,
I can found the below link where I can deactivate the tutorials.
https://discuss.frappe.io/t/how-do-you-deactivate-the-setup-tips-tutorial/118895

But I want to perform the same activity through programatically.
Can anyone advice as how to do that

Thanks