def METHOD_NAME(name, colls):
  # Get all collections of the scene and their parents in a dict
  coll_scene = C.scene.collection
  coll_parents = parent_lookup(coll_scene)
  # Create target collection
  D.collections.new(name)
  coll_target = D.collections[name]
  coll_scene.children.link(coll_target)
  for coll in colls:
    coll_parent = coll_parents.get(coll.name)
    coll_parent.children.unlink(coll)
    coll_target.children.link(coll)