code: def main():
      args = sys.argv
      list_file = args[1]
      txt_file = args[2]
      out_dir = args[3]
  
      delimiter = " "
      with open(list_file, "r") as f:
          flist = list(
              map(
                  lambda x: x.split(delimiter),
                  f.read().strip().split("\n"),
              )
          )
  
      with open(txt_file, "r") as f:
          new_lab = f.read().strip().split("\n")
  
      rfile = ""
      for n in range(len(new_lab)):
          row_num = int(flist[n][1]) - 1
  
          if rfile != flist[n][0]:
              if rfile != "":
                  write_lab(out_dir, rfile, data)  # noqa: F821
  
              rfile = flist[n][0]
              delimiter = "\t"
              with open(rfile, "r") as rf:
                  data = list(
                      map(
                          lambda x: x.split(delimiter),
                          rf.read().strip().split("\n"),
                      )
                  )
  
          data[row_num][2] = new_lab[n]
      write_lab(out_dir, rfile, data)
  
label_desc: Use image node_id 2 for calling a global function with example usage: main() without return types