code: def _tmx_to_source_target(
      tmx_file, source_resfile, target_resfile, do_cleaning=False
  ):
      source_target_pairs = cleaner_en_xx.paracrawl_v3_pairs(tmx_file)
      if do_cleaning:
          source_target_pairs = cleaner_en_xx.clean_en_xx_pairs(
              source_target_pairs
          )
      for source, target in source_target_pairs:
          source_resfile.write(source)
          source_resfile.write("\n")
          target_resfile.write(target)
          target_resfile.write("\n")
  
imports: from __future__ import absolute_import
  from __future__ import division
  from __future__ import print_function
  import gzip
  import os
  import tarfile
  import zipfile
  from tensor2tensor.data_generators import cleaner_en_xx
  from tensor2tensor.data_generators import generator_utils
  from tensor2tensor.data_generators import problem
  from tensor2tensor.data_generators import text_encoder
  from tensor2tensor.data_generators import text_problems
  from tensor2tensor.utils import bleu_hook
  from tensor2tensor.utils import contrib
  from tensor2tensor.utils import mlperf_log
  import tensorflow.compat.v1
label_desc: Use image node_id 4 for calling a global function with example usage: _tmx_to_source_target(tmx_file, source_resfile, target_resfile, do_cleaning) without return types