https://handbook.datalad.org/en/latest/basics/101-139-s3.html#advanced-examples is a rather complex script for a power-user use case. It was added to the handbook because there was no other place to put it, but the knowledge base may now be a more appropriate home for it.