Override a function used in hooks.py

Hello Frappe enthusiasts,
I am trying to override a function in ERPnext that is already called in scheduler in hooks.py of ERPNext application. How can i override that function VIA custom app, because i assume hooks.py of all application are on same level of execution.