code: def print_bin_sizes():
      
      for i, offset in enumerate(OFFSETS):
          binstart = offset
          try:
              binstop = OFFSETS[i + 1]
          except IndexError:
              binstop = binstart
  
          bin_size = 2 ** (FIRST_SHIFT + (i * NEXT_SHIFT))
          actual_size = bin_size
  
          # nice formatting
          bin_size, suffix = bin_size / 1024, 'Kb'
          if bin_size >= 1024:
              bin_size, suffix = bin_size / 1024, 'Mb'
          if bin_size >= 1024:
              bin_size, suffix = bin_size / 1024, 'Gb'
          size = '(%s %s)' % (bin_size, suffix)
          actual_size = '%s bp' % (actual_size)
  
          print('level: {i:1};  bins {binstart:<4} to {binstop:<4}; '
                'size: {actual_size:<12} {size:<6}'.format(**locals()))
docs: Useful for debugging: how large is each bin, and what are the bin IDs?