code: def span_qa(answer, example=None, is_target=False):
      """Returns answer, or a dict with answers and context if the example is provided."""
  
      if is_target:
          return {
              "answers": [
                  tf.compat.as_text(a) for a in example["answers"]
              ],
              "context": tf.compat.as_text(example["context"]),
          }
  
      return answer
  
file_path: text-to-text-transfer-transformer/t5/data/postprocessors.py
imports: import tensorflow.compat.v2
label_desc: Use image node_id 7 for calling a global function with example usage: span_qa(answer, example, is_target) and returns: answer, dict