Update: I got the fix but still ran in to same issue. I have also attched the full set of files that I used to test along with host vars.
1. I cloned the git repo https://github.com/ygorelik/ydk-gen to my VM
2. cd ydk-gen./generate.py --libydk -is...