In Stephen Leacock's bank sketch the manager thinks a nervous customer is a detective. A separate kitchen scene uses a simile, a red tag as a symbol, and a tap of a clipboard as a gesture.
Stephen Leacock, in My Financial Career from Literary Lapses (1910, public domain), writes: When I go into a bank I get rattled. The clerks rattle me; the wickets rattle me; the sight of the money rattles me; everything rattles me.
Later the manager says, students are one of Pinkerton's men, I presume. He has locked them in a private room because the narrator asked to speak alone.
The narrator came to deposit fifty-six dollars and open an account. The manager treats him as a detective. The gap between that idea and the errand is the irony, and the humour sits in that gap.
Rattle, repeated, is the language that makes the narrator seem mysterious enough for the mistake.