docs: def run_and_print_log(workflow, highlight=None):
      """Run workflow on multi-threaded worker cached with Sqlite3.
  
      :param workflow: workflow to evaluate.
      :param highlight: highlight these lines.
      """
      from noodles.run.threading.sqlite3 import run_parallel
      from noodles import serial
  
      import io
      import logging
  
      log = io.StringIO()
      log_handler = logging.StreamHandler(log)
      formatter = logging.Formatter('%(asctime)s - %(message)s')
      log_handler.setFormatter(formatter)
  
      logger = logging.getLogger('noodles')
      logger.setLevel(logging.INFO)
      logger.handlers = [log_handler]
  
      result = run_parallel(
          workflow, n_threads=4, registry=serial.base, db_file='tutorial.db',
          always_cache=True, echo_log=False)
      display_text(log.getvalue(), highlight or [], split_at=40)
      return result