code: def log_exception(msg, *args, **kwargs):
      global HAS_ERROR
      HAS_ERROR = True
      return LOG.exception(BraceMessage(msg, *args, **kwargs))
  
file_path: cpython/PC/layout/support/logging.py
imports: import logging
  import sys
label_desc: Use image node_id 7 for calling a global function with example usage: log_exception(msg) and returns: LOG