code: def _add_trace_level():
      "Wrapper to define custom TRACE level for PennyLane logging"
  
      def trace(self, message, *args, **kws):
          """Enable a more verbose mode than DEBUG. Used to enable inspection of function definitions in log messages."""
  
          # Due to limitations in how the logging module exposes support for custom levels,
          # accessing the private method `_log` has no alternative.
          # pylint: disable=protected-access
          self._log(TRACE, message, args, **kws)
  
      logging.addLevelName(TRACE, "TRACE")
      logging.TRACE = TRACE
      lc = logging.getLoggerClass()
      lc.trace = trace
  
file_path: pennylane/pennylane/logging/configuration.py
imports: import logging
  import logging.config
  import os
  from importlib import import_module
  from importlib.util import find_spec
label_desc: Use image node_id 1 for calling a global function with example usage: _add_trace_level() without return types