Maybe just indicate it clearly in the comments. Such as "The second option for setting a callback is shown in the comments below, you may comment in the code to see test it out" or something similar.