code: def _parse_verbose(verbose):
      from .check import _check_option, _validate_type
      from .config import get_config
  
      _validate_type(verbose, (bool, str, int, None), "verbose")
      if verbose is None:
          verbose = get_config("MNE_LOGGING_LEVEL", "INFO")
      elif isinstance(verbose, bool):
          if verbose is True:
              verbose = "INFO"
          else:
              verbose = "WARNING"
      if isinstance(verbose, str):
          verbose = verbose.upper()
          _check_option(
              "verbose", verbose, _LOGGING_TYPES, "(when a string)"
          )
          verbose = _LOGGING_TYPES[verbose]
  
      return verbose
  
imports: import contextlib
  import importlib
  import inspect
  import logging
  import os.path
  import re
  import sys
  import warnings
  from io import StringIO
  from typing import Any, Callable, TypeVar
  from decorator import FunctionMaker
  from .docs import fill_doc
label_desc: Use image node_id 3 for calling a global function with example usage: _parse_verbose(verbose) and returns: verbose