Mastermind 1969
Zero Mostel plays an inspector on the trail of criminals who have captured a robot called Chatze(sp?) played by Felix Silas. The inspector has delusions that he is a great Samurai warrior and the movie flashes back and forth between present day and ancient times.