code: def csv_to_df(ctx, file_path, has_label=True):
      df = pd.read_csv(file_path)
      df["sample_id"] = [i for i in range(len(df))]
      if has_label:
          reader = PandasReader(
              sample_id_name="sample_id",
              match_id_name="id",
              label_name="y",
              dtype="float32",
          )
      else:
          reader = PandasReader(
              sample_id_name="sample_id",
              match_id_name="id",
              dtype="float32",
          )
  
      fate_df = reader.to_frame(ctx, df)
      return fate_df
  
file_path: FATE/examples/launchers/secureboost_launcher.py
imports: import pandas
  from fate.arch import Context
  from fate.arch.dataframe import DataFrame
  from fate.arch.dataframe import PandasReader
  from fate.arch.launchers.multiprocess_launcher import launch
  from fate.ml.ensemble.algo.secureboost.hetero.guest import HeteroSecureBoostGuest
  from fate.ml.ensemble.algo.secureboost.hetero.host import HeteroSecureBoostHost
label_desc: Use image node_id 3 for calling a global function with example usage: csv_to_df(ctx, file_path, has_label) and returns: fate_df