code: def _configure_library_root_logger() -> None:
      global _default_handler
  
      with _lock:
          if _default_handler:
              # This library has already configured the library root logger.
              return
          _default_handler = (
              logging.StreamHandler()
          )  # Set sys.stderr as stream.
          # set defaults based on https://github.com/pyinstaller/pyinstaller/issues/7334#issuecomment-1357447176
          if sys.stderr is None:
              sys.stderr = open(os.devnull, "w")
  
          _default_handler.flush = sys.stderr.flush
  
          # Apply our default configuration to the library root logger.
          library_root_logger = _get_library_root_logger()
          library_root_logger.addHandler(_default_handler)
          library_root_logger.setLevel(_get_default_logging_level())
          # if logging level is debug, we add pathname and lineno to formatter for easy debugging
          if os.getenv("TRANSFORMERS_VERBOSITY", None) == "detail":
              formatter = logging.Formatter(
                  "[%(levelname)s|%(pathname)s:%(lineno)s] %(asctime)s >> %(message)s"
              )
              _default_handler.setFormatter(formatter)
  
          library_root_logger.propagate = False
  
imports: import functools
  import logging
  import os
  import sys
  import threading
  from logging import CRITICAL, DEBUG, ERROR, FATAL, INFO, NOTSET, WARN, WARNING
  from logging import captureWarnings
  from typing import Optional
  import huggingface_hub.utils
  from tqdm import auto
label_desc: Use image node_id 4 for calling a global function with example usage: _configure_library_root_logger() without return types