code: def remove_duplicate_cols_in_dataset(df):
      df = copy.deepcopy(df)
      cols = df.columns.tolist()
      number_duplicates = df.columns.duplicated().astype(int).sum()
      if number_duplicates > 0:
          print(
              "Detected %d duplicate columns in dataset. Removing duplicates..."
              % number_duplicates
          )
          df = df.loc[:, ~df.columns.duplicated()]
      return df
  
imports: from typing import List
  import numpy
  import pandas
  import copy
  import pdb
  from sklearn.model_selection import TimeSeriesSplit
  import dask
  import dask.dataframe
  import datetime
  from datetime import datetime, date, time
label_desc: Use image node_id 3 for calling a global function with example usage: remove_duplicate_cols_in_dataset(df) and returns: df