Hah, I worked in a grocery store part of my time and college and this is very similar to the way I was taught to tie plastic grocery bags shut. Sub the two handles of the bag for these loops, and repeat it a second time after pulling through. Extremely useful for people on bike.
Practically impossible for the knot to come undone and after 5 minutes of practice you can do it in literally 1-2 seconds.