code: def merge_tuple(tpl):
      if isinstance(tpl, tuple) and len(tpl) > 1:
          return "_".join(map(str, tpl))
      else:
          return tpl
  
imports: import numpy
  import pandas
  import statsmodels.formula.api
  import statsmodels.api
  from scipy import stats
label_desc: Use image node_id 1 for calling a global function with example usage: merge_tuple(tpl) and returns: str, tpl