code: def test_verbose_strictness():
      """Test that the verbose decorator is strict about usability."""
  
      @verbose
      def bad_verbose():
          pass
  
      with pytest.raises(RuntimeError, match="does not accept"):
          bad_verbose()
  
      class Okay:
          @verbose
          def meth_2(self, verbose=None):
              logger.info("meth_2")
  
      o = Okay()
      with catch_logging() as log:
          o.meth_2(verbose=False)
      log = log.getvalue()
      assert log == ""
      with catch_logging() as log:
          o.meth_2(verbose=True)
      log = log.getvalue()
      assert "meth_2" in log
      with catch_logging() as log:
          o.meth_2(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 9 for calling a global function with example usage: test_verbose_strictness() without return types