code: def trace_unhandled_exceptions(func):
      @functools.wraps(func)
      def wrapped_func(*args, **kwargs):
          try:
              func(*args, **kwargs)
          except:
              print("Exception in " + func.__name__)
              traceback.print_exc()
  
      return wrapped_func
  
file_path: infinity/python/benchmark/test_remote_benchmark_basic.py
imports: import functools
  import multiprocessing
  import threading
  import time
  import traceback
  from datetime import datetime
  import pandas
  import infinity
  from infinity import NetworkAddress
label_desc: Use image node_id 1 for calling a global function with example usage: trace_unhandled_exceptions(func) and returns: wrapped_func