def METHOD_NAME(data, bits, line_length=30):
    def _print_timing_diagram(data, bits):
        line_length = 0
        for i in bits:
            print('Bit {:2d}:'.format(i), end='')
            last = (data[0] >> i) & 1
            for d in data:
                curr = (d >> i) & 1
                if curr == 0:
                    print('0', end='')
                elif curr == 1:
                    print('1', end='')
                last = curr
            print('')
    done = False
    while len(data) > 0:
        if len(data) > line_length:
            d = data[0:line_length]
            data = data[line_length:]
        else:
            d = data
            data = []
            done = True
        _print_timing_diagram(d, bits)
        if not done:
            print('')
            print('       ', end='')
            print('-' * line_length)