code: def log_warnings():
      import warnings
  
      logging.captureWarnings(True)
      warnings.simplefilter("default", DeprecationWarning)
      init(logging.DEBUG, name="py.warnings")
  
file_path: pelican/pelican/log.py
imports: import logging
  from collections import defaultdict
  from rich.console import Console
  from rich.logging import RichHandler
label_desc: Use image node_id 2 for calling a global function with example usage: log_warnings() without return types