The Wild Wild West: Season 1, Episode 22
The Night of the Bars of Hell (4 Mar. 1966)
Jim goes undercover as a prison inspector to investigate a local prison. When Jim is sentenced to die in the electric chair, Arte poses as the executioner to save him.