Thermal transpiration and mechanocaloric effect. IV. Flow of a polyatomic gas in a cylindrical tube