See: `r2.lib.utils.tup`