class_docstr: SquadConcat with targets in format of answer position + answer length.
class_docstr_tok: ["SquadConcat","with","targets","in","format","of","answer","position","+","answer","length","."]
code: def generate_targets(self, targets, context):
      targets = targets[:-1]  # skip last terminal symbol.
      targets_new = []
      i = 0
      while i < len(context) - len(targets):
          if context[i : i + len(targets)] == targets:
              # emit answer's position and length.
              targets_new.append(i)
              targets_new.append(len(targets))
          i += 1
      return targets_new
  
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 1 for calling the SquadConcatPositioned obj's underlying member method code with example usage: obj.generate_targets(targets, context) and returns: targets_new