code: def test_verbose_method(verbose):
      """Test for gh-8772."""
      # raw
      raw = read_raw_fif(fname_raw, verbose=verbose)
      with catch_logging() as log:
          raw.load_data(verbose=True)
      log = log.getvalue()
      assert "Reading 0 ... 14399" in log
      with catch_logging() as log:
          raw.load_data(verbose=False)
      log = log.getvalue()
      assert log == ""
      # epochs
      events = np.array([[raw.first_samp + 200, 0, 1]], int)
      epochs = Epochs(raw, events, verbose=verbose)
      with catch_logging() as log:
          epochs.drop_bad(verbose=True)
      log = log.getvalue()
      assert "0 bad epochs dropped" in log
      epochs = Epochs(raw, events, verbose=verbose)
      with catch_logging() as log:
          epochs.drop_bad(verbose=False)
      log = log.getvalue()
      assert log == ""
  
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 6 for calling a global function with example usage: test_verbose_method(verbose) without return types