Bored Hatamoto (1930)
Bored Hatamoto: The Imposter

Overview
Around the Genroku era, there was a man named Saotome Shusui-no-Suke, nephew to the senior councilor Matsudaira Sakon Shogen. He was commonly known as the Bored Samurai of the Hatamoto rank. Just as he was engulfed in boredom, Tokugawa Jo-Kaibo, claiming to be the Shogun's illegitimate child, made a grand entrance into Edo. At the behest of Sakon Shogen, Shusui-no-Suke was tasked to investigate Jo-Kaibo's background and had his young page Kyoya disguise as a woman to infiltrate Jo-Kaibo's gun mansion.
Similar
The Hidden Fortress (1958)
Guitar Men: The Darkest Secret of Rock 'n Roll (2007)
Blizzard Ronin (1939)
Two Portraits of MIYAGINO (2010)
Kenpu Renpeikan (1944)
Sucker Punch (2011)
Harakiri (1962)
Geisha Assassin (2008)
Lone Wolf and Cub: Baby Cart at the River Styx (1972)
The Acrobats of Death (1959)
Shinobi: Heart Under Blade (2005)
Sanjuro (1962)
Fighting Yasubei (1952)
Last Days of the Samurai (1957)
Zatoichi on the Road (1963)
Mumon: The Land of Stealth (2017)
Hana (2006)
Incident at Blood Pass (1970)
Records of loyal vassals (1962)
Samurai Hustle (2014)