[libs.segmentation.scripts.dump_annotations] Implement routine to dump annotations from an arbitrary datamodule