code: def rethrow(exception, additional_message):
      """
      Re-raise the last exception that was active in the current scope
      without losing the stacktrace but adding an additional message.
      This is hacky because it has to be compatible with both python 2/3
      """
      e = exception
      m = additional_message
      if not e.args:
          e.args = (m,)
      else:
          e.args = (e.args[0] + m,) + e.args[1:]
      raise e
  
imports: import pandas
  import numpy
  import re
  import warnings
  from IPython.display import display
  from pandas.tseries.offsets import CustomBusinessDay, Day, BusinessDay
  from scipy.stats import mode
label_desc: Use image node_id 1 for calling a global function with example usage: rethrow(exception, additional_message) without return types