code: def test_verbose_threads(n_jobs):
      """Test that our verbose level propagates to threads."""
  
      def my_fun():
          from mne.utils import logger
  
          return logger.level
  
      with use_log_level("info"):
          assert logger.level == logging.INFO
          with use_log_level("warning"):
              assert logger.level == logging.WARNING
              parallel, p_fun, got_jobs = parallel_func(
                  my_fun, n_jobs=n_jobs
              )
              assert got_jobs in (
                  1,
                  n_jobs,
              )  # FORCE_SERIAL could be set
              out = parallel(p_fun() for _ in range(5))
              want_levels = [logging.WARNING] * 5
              assert out == want_levels
  
imports: import logging
  import os
  import re
  import warnings
  from pathlib import Path
  import numpy
  import pytest
  from mne import Epochs, create_info, read_evokeds
  from mne.io import RawArray, read_raw_fif
  from mne.parallel import parallel_func
  from mne.utils import _get_call_line, catch_logging, check, filter_out_warnings, logger, set_log_file, set_log_level, use_log_level, verbose, warn
  from mne.utils._logging import _frame_info
label_desc: Use image node_id 10 for calling a global function with example usage: test_verbose_threads(n_jobs) and returns: logger