get_persistence_diagrams function

get_persistence_diagrams