code: def get_logger(name: str) -> logging.Logger:
      """Return a logger.
  
      Parameters
      ----------
      name : str
          The name of the logger to use. You should just pass in __name__.
  
      Returns
      -------
      Logger
  
      """
      if name in _loggers.keys():
          return _loggers[name]
  
      if name == "root":
          logger = logging.getLogger("streamlit")
      else:
          logger = logging.getLogger(name)
  
      logger.setLevel(_global_log_level)
      logger.propagate = False
      setup_formatter(logger)
  
      _loggers[name] = logger
  
      return logger
  
file_path: streamlit/lib/streamlit/logger.py
imports: import logging
  import sys
  from typing import Dict, Union
  from typing_extensions import Final
label_desc: Use image node_id 5 for calling a global function with example usage: get_logger(name) and returns: logger, _loggers