Yep, I've done this many times in the past, usually after a couple of libations!
These days my favourite trick is to fit new SPD pedals, but forget to adjust the spring tension. The end result is that the 1st junction you get to, you stop, struggle vainly to remove your foot from the pedal and then down you go. Why is it there always seems to be a crowd of people around when you do stupid things too? 🤣