Not possible right now.
Basically what would be great to have is a collection.expand_set(state, view_layer=None)
function, where you can optionally pass a view layer.
Very similar to the new hide_set()
for objects. And btw, the collections could need the hide_set()
as well.