From animation sequesnce to root motion sequence

I am using an asset from store which has some roll animations. On forward animation there are already created root motion animation, I just activated root motion and it works just fine. For the other roll (sideways) it does not have a root motion animation. I have tried to look at the differences but I see nothing different.

How can I convert a normal animation sequence to a root motion animation?

Expected: Animation without root motion activated should keep the root in place and get back in the place it started.