How to selecting a collection via python?

import bpy    
collections = bpy.context.view_layer.layer_collection.children
for collection in collections:
    if ==
        bpy.context.view_layer.active_layer_collection = collection

This is the original code that can set collection 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