code: def write_to_file(filename, data):
      data = ".\n".join(data.split(". "))
      with open(filename, "w") as fp:
          fp.write(data)
  
file_path: tensor2tensor/tensor2tensor/utils/get_rouge.py
imports: from __future__ import absolute_import
  from __future__ import division
  from __future__ import print_function
  import logging
  import os
  import shutil
  from tempfile import mkdtemp
  import pyrouge
  import tensorflow.compat.v1
label_desc: Use image node_id 1 for calling a global function with example usage: write_to_file(filename, data) without return types