How to selecting a collection via python?

import bpy    
Cam= bpy.context.scene.camera      
collections = bpy.context.view_layer.layer_collection.children
for collection in collections:
    if collection.name == Cam.name:
        bpy.context.view_layer.active_layer_collection = collection

This is the original code that can set collection active.now if collection have childen collection(as shown in pic). how to set collection chilren(“collction 10” or “collction 11”) as avtive collection via python?

enter image description here