@@ -0,0 +1,814 @@
+import os%0A%0Afrom collections import defaultdict%0A%0Aimport click%0A%0Aimport dtoolcore%0A%0A%0A@click.command()%0A@click.argument('dataset_path')%0Adef main(dataset_path):%0A%0A    uri = %22disk:%7B%7D%22.format(dataset_path)%0A%0A    proto_dataset = dtoolcore.ProtoDataSet.from_uri(uri)%0A%0A    overlays = defaultdict(dict)%0A    for handle in proto_dataset._storage_broker.iter_item_handles():%0A        identifier = dtoolcore.utils.generate_identifier(handle)%0A        item_metadata = proto_dataset._storage_broker.get_item_metadata(handle)%0A        for k, v in item_metadata.items():%0A            overlays%5Bk%5D%5Bidentifier%5D = v%0A%0A    print overlays.keys()%0A%0A    # for handle in proto_dataset._storage_broker.iter_item_handles():%0A    #     print(handle)%0A%0A    for overlay in overlays:%0A        print len(overlays%5Boverlay%5D)%0A%0Aif __name__ == '__main__':%0A    main()%0A

Add script to check dataset integrity