How to pass a collection node to set a variable mode?

Instead of the collectionId string, pass a VariableCollection object.