To fetch and retrieve the Variable Mode attached to the node

I’m actually having issues with the resolvedVariableModes as it only returns a value if the node already has set a variable. Even if the parent node has an explicit variable mode. I believe this wasn’t always the case or am I missing something here? Unexpected behavior for resolvedVariableModes