code: def write_lab(out_dir, rfile, data):
      os.makedirs(out_dir, exist_ok=True)
      wfile = os.path.join(out_dir, os.path.basename(rfile))
      with open(wfile, "w") as wf:
          for data_row in range(len(data)):
              wf.write(data[data_row][0] + "\t")
              wf.write(data[data_row][1] + "\t")
              wf.write(data[data_row][2] + "\n")
  
label_desc: Use image node_id 1 for calling a global function with example usage: write_lab(out_dir, rfile, data) without return types