Rather than forcing consumers to deal with language-specific data ad-hoc, add an API that allows all language-specific data to be decoded up-front.
This code generator processes a bound Pulumi program represented using an HCL2-based IR and converts it to an equivalent Python program.