Create Views from Groups and Isolate the Corrosponding Group in the View

Hi , I came accros this post and solution while trying to achieve something similar -
I have several model groups that repeat (via instances_ in various parts of the model and I am trying to create a 3d view with all instances of that particular group isolated in the view.
I am using the Rhythm Collector.ModelGroupByName to get all instances of each group.
I was trying to change the python to iterate through the group list but got an error that objcet - Group does not have a GetMembersIds attribute .

modified code section

try:
errorReport = None
TransactionManager.Instance.EnsureInTransaction(doc)
for gl, v in zip(IN[0], IN[1]):
view = UnwrapElement(v)
for e in gl:
view.IsolateElementsTemporary(UnwrapElement(e).GetMemeberIds())
view.ConvertTemporaryHideIsolateToPermanent()
TransactionManager.Instance.TransactionTaskDone()
except:
import traceback
errorReport = traceback.format_exc()

Can anyone perhaps (@Konrad_K_Sobon?) help ?