code: def generate_csv(csv_path, dataset):
      with open(csv_path, "w", newline="") as csvfile:
          writter = csv.writer(csvfile)
          writter.writerow(["text", "label"])
          for case in dataset:
              # some cases have multiple labels,
              # so each one becomes its own training case
              for label in case["labels"]:
                  text = case["text"]
                  writter.writerow([text, label])
  
imports: from datasets import load_dataset
  import csv
  from happytransformer import HappyTextClassification, TCTrainArgs
label_desc: Use image node_id 2 for calling a global function with example usage: generate_csv(csv_path, dataset) without return types