code: def clear_logger(logger: Union[str, logging.Logger]):
      """Reset a logger, clearing its handlers and enabling propagation.
  
      Args:
          logger: Logger to be cleared
      """
      if isinstance(logger, str):
          logger = logging.getLogger(logger)
      logger.propagate = True
      logger.handlers.clear()
  
file_path: ray/python/ray/_private/log.py
imports: import logging
  import re
  from logging.config import dictConfig
  import threading
  from typing import Union
label_desc: Use image node_id 2 for calling a global function with example usage: clear_logger(logger) without return types