code: def replace_tuple_columns(pdf):
      new_df = pd.DataFrame()
      for c in pdf.columns:
          if isinstance(pdf[c].iloc[0], tuple):
              new_df[c] = pdf[c].map(
                  lambda x: list(x) if isinstance(x, tuple) else x
              )
          else:
              new_df[c] = pdf[c]
      return new_df
  
imports: import pandas
label_desc: Use image node_id 1 for calling a global function with example usage: replace_tuple_columns(pdf) and returns: new_df