In the TV miniseries, Shogun, based on James Clavell's novel of the same name, there is a scene in which the Tokugawa Ieyasu character is one of five regents but seems to be trapped in a castle in some way. Then he disguises himself as a woman and escapes hidden in a palanquin with his large retinue. After he is gone, one of his retainers presents his "resignation" to the castle owner.
Summaries I have read of Tokugawa's career do not seem to mention this episode in his life. Is it fiction or based on history?