I am trying to use the mock library and basically patching some module functions. So, I have some existing code which looks like this:
@patch(\'loader.utils.r