Path animations in Jetpack Compose

How to define path objects and use them in animations.