How to customize the double backward?

Define another Function to do backward of this function (and use it in this backward) and define double backward in that Function’s backward.