code: def write(self, word, predictions, targets, lengths):
      batch_size, _ = word.shape
      for i in range(batch_size):
          for j in range(lengths[i]):
              w = self.__i2w[word[i, j]]
              tgt = self.__i2n[targets[i, j]]
              pred = self.__i2n[predictions[i, j]]
              self.__source_file.write(
                  "%d %s %s %s %s %s\n"
                  % (j + 1, w, "_", "_", tgt, pred)
              )
          self.__source_file.write("\n")
  
label_desc: Use image node_id 4 for calling the CoNLLWriter obj's underlying member method code with example usage: obj.write(word, predictions, targets, lengths) without return types