def print_n_subroutines(name, td, fds):
    print("%s:\n\tGlobal Subrs: %d" % (name, len(td.GlobalSubrs)))
    for i, fd in enumerate(fds):
        try:
            x = len(fd.Private.Subrs)
        except AttributeError:
            x = 0
        print("\tFD %d Subrs: %d" % (i, x))
dataset/ETHPy150Open googlei18n/compreffor/tools/subr_grapher.py/print_n_subroutines/original