結果 : how to patch a function in python