code: def redirectToFile():
      sys.stdout = open("out.txt", "w+")
  
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 1 for calling a global function with example usage: redirectToFile() without return types