def print_tokens(tokens, style=None, true_color=False, file=None):
 if (style is None):
  style = DEFAULT_STYLE
 assert isinstance(style, Style)
 output = create_output(true_color=true_color, stdout=file)
 renderer_print_tokens(output, tokens, style)

def print_tokens ( tokens , style = None , true_color = False , file = None ) : if ( style is None ) : style = DEFAULT_STYLE assert isinstance ( style , Style ) output = create_output ( true_color = true_color , stdout = file ) renderer_print_tokens ( output , tokens , style )
print a list of tuples in the given style to the output .