code: def log_exception(e: Exception, func: callable):
      logger.warning(
          f'Exception "{str(e)}" raised in function "{func.__name__}"'
      )
  
file_path: aim/aim/ext/exception_resistant.py
imports: import logging
  from functools import wraps
label_desc: Use image node_id 1 for calling the _SafeModeConfig obj's underlying member method code with example usage: obj.log_exception(e, func) without return types