What Can Transformer Learn with Varying Depth? Case Studies on Sequence Learning Tasks | Synapse