Here is the preview code to be used with deeplabcut.
To use it, you must train your machine learning using deeplabcut. You can find more about it in:
https://github.com/DeepLabCut/DeepLabCut
When you train you data, you can create the data to be used with this code.
the file needed is the one that will be placed in you video folder. The name of it, will be something like: "_full.pickle"
I added one of my deeplabcut test, so you can try it.