A way of saying that you would rather do anything instead of what someone has just told you to do.
Person 1: are you going to do your homework Person 2: i'd rather eat a shoe