def METHOD_NAME(args, dataset):
    column_names = args.column_names + [args.label_column]
    dataset_df = pd.DataFrame(columns=column_names)
    for data in dataset:
        per_df = pd.DataFrame([[data.impath, data.label]], columns=column_names)
        dataset_df = pd.concat(
            [dataset_df, per_df],
            ignore_index=True,
        )
    return dataset_df