The Adventure of Sherlock Holmes' Smarter Brother (1975)
The Adventure of Sherlock Holmes' Smarter Brother is a 1975 American musical comedy film with Gene Wilder, Marty Feldman, Madeline Kahn, Dom DeLuise, Roy Kinnear and Leo McKern. The film was Wilder's directorial debut, from his own original script.
More at Wikipedia.