code: def extract_df_from_ds(dataset):
      """Extract data frames from Transformer Data set
  
      Args:
           :param dataset: aif360 dataset
  
      Returns:
           :return X, X_prime, y: pandas dataframes of attributes, sensitive attributes, labels
      """
  
      X = pd.DataFrame(dataset.convert_to_dataframe()[0])
      # remove labels
      X = X.drop(columns=dataset.label_names)
      # get sensitive attributes
      X_prime = X[dataset.protected_attribute_names]
      y = tuple(dataset.labels[:, 0])
      return X, X_prime, y
  
file_path: AIF360/aif360/algorithms/inprocessing/gerryfair/clean.py
imports: import argparse
  import numpy
  import pandas
label_desc: Use image node_id 6 for calling a global function with example usage: extract_df_from_ds(dataset) and returns: X,  X_prime,  y