class_docstr: Base class for translation problems.
class_docstr_tok: ["Base","class","for","translation","problems","."]
code: def generate_text_for_vocab(self, data_dir, tmp_dir):
      return generator_utils.generate_lines_for_vocab(
          tmp_dir, self.vocab_data_files()
      )
  
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 7 for calling the TranslateProblem obj's underlying member method code with example usage: obj.generate_text_for_vocab(data_dir, tmp_dir) and returns: generator_utils