human
Complete the below
def _print_ref_counts():

    ''''Print out all ref counts for the graph used here, for debugging'
    '''

Write me a Python program to print out all ref counts for the graph used here, for debugging'?
assistant
#Here is Python program to print out all ref counts for the graph used here, for debugging'
.
    recs = []
    def add_rec(spec):
        cspecs = spack.store.db.query(spec, installed=any)
        if (not cspecs):
            recs.append(('[    %-7s    ]    %-20s-' % ('', spec)))
        else:
            key = cspecs[0].dag_hash()
            rec = spack.store.db.get_record(cspecs[0])
            recs.append(('[    %-7s    ]    %-20s%d' % (key[:7], spec, rec.ref_count)))
    with spack.store.db.read_transaction():
        add_rec('mpileaks    ^mpich')
        add_rec('callpath    ^mpich')
        add_rec('mpich')
        add_rec('mpileaks    ^mpich2')
        add_rec('callpath    ^mpich2')
        add_rec('mpich2')
        add_rec('mpileaks    ^zmpi')
        add_rec('callpath    ^zmpi')
        add_rec('zmpi')
        add_rec('fake')
        add_rec('dyninst')
        add_rec('libdwarf')
        add_rec('libelf')
    colify(recs, cols=3)