def get_collection_snapshots_metadata(collection_id):
 collection = get_collection_by_id(collection_id)
 current_version = collection.version
 version_nums = range(1, (current_version + 1))
 return collection_models.CollectionModel.get_snapshots_metadata(collection_id, version_nums)

def get_collection_snapshots_metadata ( collection_id ) : collection = get_collection_by_id ( collection_id ) current_version = collection . version version_nums = range ( 1 , ( current_version + 1 ) ) return collection_models . CollectionModel . get_snapshots_metadata ( collection_id , version_nums )
returns the snapshots for this collection .