class_docstr: MSR Paraphrase Identification problems.
class_docstr_tok: ["MSR","Paraphrase","Identification","problems","."]
code: def generate_samples(self, data_dir, tmp_dir, dataset_split):
      mrpc_dir = self._maybe_download_corpora(tmp_dir)
      if dataset_split != problem.DatasetSplit.TEST:
          filesplit = "msr_paraphrase_train.txt"
      else:
          filesplit = "msr_paraphrase_test.txt"
      dev_ids = []
      if dataset_split != problem.DatasetSplit.TEST:
          for row in tf.gfile.Open(
              os.path.join(mrpc_dir, "dev_ids.tsv")
          ):
              dev_ids.append(row.strip().split("\t"))
  
      filename = os.path.join(mrpc_dir, filesplit)
      for example in self.example_generator(
          filename, dev_ids, dataset_split
      ):
          yield example
  
imports: from __future__ import absolute_import
  from __future__ import division
  from __future__ import print_function
  import os
  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 registry
  import tensorflow.compat.v1
label_desc: Use image node_id 8 for calling the MSRParaphraseCorpus obj's underlying member method code with example usage: obj.generate_samples(data_dir, tmp_dir, dataset_split) without return types