code: def write_to_conll_eval_file(prediction_file: TextIO,
                               gold_file: TextIO,
                               verb_index: Optional[int],
                               sentence: List[str],
                               prediction: List[str],
                               gold_labels: List[str]):
      
      verb_only_sentence = ["-"] * len(sentence)
      if verb_index:
          verb_only_sentence[verb_index] = sentence[verb_index]
  
      conll_format_predictions = convert_bio_tags_to_conll_format(prediction)
      conll_format_gold_labels = convert_bio_tags_to_conll_format(gold_labels)
  
      for word, predicted, gold in zip(verb_only_sentence,
                                       conll_format_predictions,
                                       conll_format_gold_labels):
          prediction_file.write(word.ljust(15))
          prediction_file.write(predicted.rjust(15) + "\n")
          gold_file.write(word.ljust(15))
          gold_file.write(gold.rjust(15) + "\n")
      prediction_file.write("\n")
      gold_file.write("\n")
docs: Prints predicate argument predictions and gold labels for a single verbal
      predicate in a sentence to two provided file references.
  
      Parameters
      ----------
      prediction_file : TextIO, required.
          A file reference to print predictions to.
      gold_file : TextIO, required.
          A file reference to print gold labels to.
      verb_index : Optional[int], required.
          The index of the verbal predicate in the sentence which
          the gold labels are the arguments for, or None if the sentence
          contains no verbal predicate.
      sentence : List[str], required.
          The word tokens.
      prediction : List[str], required.
          The predicted BIO labels.
      gold_labels : List[str], required.
          The gold BIO labels.