code: def write_fileset(output_csv_file, sentences):
      with open(output_csv_file, "w") as fout:
          for sentence in sentences:
              for line in sentence:
                  pieces = line.split("\t")
                  if len(pieces) != 6:
                      raise ValueError(
                          "Found %d pieces instead of the expected 6"
                          % len(pieces)
                      )
                  if pieces[3] == "o" and (
                      pieces[4] != "o" or pieces[5] != "o"
                  ):
                      raise ValueError(
                          "Inner NER labeled but the top layer was O"
                      )
                  fout.write(
                      "%s\t%s\n"
                      % (
                          pieces[0],
                          normalize(pieces[3], pieces[4], pieces[5]),
                      )
                  )
              fout.write("\n")
  
imports: import argparse
  import glob
  import os
  import random
label_desc: Use image node_id 3 for calling a global function with example usage: write_fileset(output_csv_file, sentences) without return types