The code changes are to generate metadata.yaml, config.yaml, unithooks from tosca template.

I agree, this is a good pattern. But I know the toscalib will input into our project, so I think toscalib will take charge into the paser function.
Thanks