Dancers, gymnasts, and martial artists use many of the same muscle groups, so it makes sense that their stretching exercises would be very similar. Flexibility and mobility are the keys to preventing injury and increasing the quality of your training. While most of us aren't this flexible, you can take the stretches and modify them to fit your level.
https://www.youtube.com/watch?v=gQN_JBh-CLk