code: def print_tokens(self, tokens, style=None):
          
          print_tokens(self.output, tokens, style or self.application.style)
docs: Print a list of (Token, text) tuples to the output.
          (When the UI is running, this method has to be called through
          `run_in_terminal`, otherwise it will destroy the UI.)
  
          :param style: Style class to use. Defaults to the active style in the CLI.