def METHOD_NAME(algod, rounds=10, adir=''):
    status = algod.status()
    lastround = status['last-round']
    cround = lastround - rounds
    bytxtype = {}
    mintime = None
    maxtime = None
    mintc = None
    maxtc = 0
    while cround <= lastround:
        ba = msgpack.loads(algod.block_info(cround, response_format='msgpack'), strict_map_key=False)
        #logger.debug('block keys %s', sorted(ba['block'].keys()))
        mintime = mins(mintime, ba['block']['ts'])
        maxtime = maxs(maxtime, ba['block']['ts'])
        mintc = mins(mintc, ba['block'].get('tc'))
        maxtc = maxs(maxtc, ba['block'].get('tc',0))
        txns = ba['block'].get('txns',[])
        for stxib in txns:
            #logger.debug('txn keys %s', sorted(stxib['txn'].keys()))
            tt = stxib['txn']['type']
            bytxtype[tt] = bytxtype.get(tt, 0) + 1
        cround += 1
    summary = [(count, tt) for tt,count in bytxtype.items()]
    summary.sort(reverse=True)
    print(summary)
    dt = maxtime-mintime
    dtxn = maxtc-mintc
    logger.debug('%s ts=[%d..%d] (%ds), tc=[%d..%d] (%d txn)', adir, mintime, maxtime, dt, mintc, maxtc, dtxn)
    tps = dtxn/dt
    return tps