class_docstr: Squad as a Text2TextProblem.
class_docstr_tok: ["Squad","as","a","Text2TextProblem","."]
code: def generate_samples(self, data_dir, tmp_dir, dataset_split):
      for example in _generate_examples(tmp_dir, dataset_split):
          yield {
              "inputs": "squad context: %s question: %s"
              % (example["context"], example["question"]),
              # TODO(ddohan, wgaj): Figure out a way of extracting all answers.
              "targets": example["answers"][0],
          }
  
imports: from __future__ import absolute_import
  from __future__ import division
  from __future__ import print_function
  import json
  import os
  from tensor2tensor.data_generators import generator_utils
  from tensor2tensor.data_generators import problem
  from tensor2tensor.data_generators import text_problems
  from tensor2tensor.data_generators import wiki_lm
  from tensor2tensor.utils import registry
  import tensorflow.compat.v1
label_desc: Use image node_id 2 for calling the SquadText2text obj's underlying member method code with example usage: obj.generate_samples(data_dir, tmp_dir, dataset_split) without return types