I am looking for this solution. Is it possible to take the backup of function from global vars before it's overriden from other shared library so that I can call whichever version of function needed in the next steps