Dream of Dream: parable

The person once dreamed that she/he was a butterfly fluttering around. Suddenly, she/he awoke and found herself laying there, a person once again. But then she thought to herself, "Was I before a person who dreamed about being a butterfly, or am I a butterfly who dreamed about being a man, which?"