Python: Is there a way to change branch opacity in Sunburst graphs?

This is mostly to build off of a similar question about changing the opacity of the outermost leaves of a sunburst graph ( link to stackoverflow )

Is there a way to utilize leaf or another attribute to manipulate the opacity of different rings of a sunburst chart? I would be particularly interested in a way to set the center and outermost rings to full opacity but to leave the intermediate rings a lighter shade. In other words, is there a way to adjust branch opacity so that the root and leaves are fully opaque but the branches in between are lighter in shade?

Ideally this would be accomplished in a dynamic way rather than hard-setting a color for every individual node, but I’ll take what I can get.