Library override hierarchy on a collection using python

Hi maybe someone can help me figure out how to script this, how do a make a library override of a collection using python. I have figured out how to do it on a single object bpy.ops.outliner.id_operation(type='OVERRIDE_LIBRARY_CREATE_HIERARCHY')

But I would like to simply give a collection object or name as input and then make the library override the contents of the collection. Just as this action.