class_docstr: log to csv file
code: def write(self, line):
      line = [
          x.encode("ascii", "replace") for x in line
      ]  # map to ascii if possible (for py2 and windows)
      self.writer.writerow(line)
      self.file.flush()
  
file_path: calamari/calamari_ocr/thirdparty/ctcwordbeamsearch/Utils.py
imports: from __future__ import division
  from __future__ import print_function
  import csv
  import sys
label_desc: Use image node_id 2 for calling the CSVWriter obj's underlying member method code with example usage: obj.write(line) without return types