code: def get_logger(name: Optional[str] = None) -> logging.Logger:
      """
      Return a logger with the specified name.
  
      This function is not supposed to be directly accessed unless you are writing a custom transformers module.
      """
  
      if name is None:
          name = _get_library_name()
  
      _configure_library_root_logger()
      return logging.getLogger(name)
  
imports: import logging
  import os
  import sys
  import threading
  from functools import lru_cache
  from logging import CRITICAL, DEBUG, ERROR, FATAL, INFO, NOTSET, WARN, WARNING
  from typing import TYPE_CHECKING, Optional
label_desc: Use image node_id 7 for calling a global function with example usage: get_logger(name) and returns: logging