def print_spans(spans, max_idx: int) -> None:
bel_spans = ["<STR_LIT:U+0020>"] * (max_idx + <NUM_LIT:3>)<EOL>for val, span in spans:<EOL><INDENT>if val in ["<STR_LIT>", "<STR_LIT>"]:<EOL><INDENT>continue<EOL><DEDENT>for i in range(span[<NUM_LIT:0>], span[<NUM_LIT:1>] + <NUM_LIT:1>):<EOL><INDENT>bel_spans[i] = val[<NUM_LIT:0>]<EOL><DEDENT><DEDENT>bel_spans = ["<STR_LIT:U+0020>"] * (max_idx + <NUM_LIT:3>)<EOL>for val, span in spans:<EOL><INDENT>if val not in ["<STR_LIT>"]:<EOL><INDENT>continue<EOL><DEDENT>for i in range(span[<NUM_LIT:0>], span[<NUM_LIT:1>] + <NUM_LIT:1>):<EOL><INDENT>bel_spans[i] = val[<NUM_LIT:0>]<EOL><DEDENT><DEDENT>
Quick test to show how character spans match original BEL String

    Mostly for debugging purposes