How do I write the following statement as Python code?
If \'Chrome.exe\' is open for more than 2 hours, shutdown the PC.