Changing View Group of a Node in View Controllers using Python

I want to change the view group of a bunch of different nodes in the View Controllers module as part of a Python script.

So far I have only managed to get that vc = slicer.modules.viewcontrollers gives me access to the View Controllers module, but am unsure how to change the view group (which is under View Controllers --> Advanced)

Most properties you can modify directly in the MRML node. For example, you can set the Red slice view node group to 1 by this call:

slicer.app.layoutManager().sliceWidget('Red').mrmlSliceNode().SetViewGroup(1)