code: def enable_and_configure_logging():
      pl_logging.enable_logging()
  
      pl_logger = logging.root.manager.loggerDict["pennylane"]
      plqn_logger = logging.root.manager.loggerDict["pennylane.qnode"]
  
      # Ensure logs messages are propagated for pytest capture
      pl_logger.propagate = True
      plqn_logger.propagate = True
  
file_path: pennylane/tests/logging/test_logging_autograd.py
imports: import logging
  import pytest
  import pennylane
  import pennylane.logging
label_desc: Use image node_id 1 for calling a global function with example usage: enable_and_configure_logging() without return types