code: def generate_txt(txt_path, dataset):
      with open(txt_path, "w", newline="") as text_file:
          for case in dataset:
              text = case["summary"]
              text_file.write(text + "\n")
  
label_desc: Use image node_id 2 for calling a global function with example usage: generate_txt(txt_path, dataset) without return types