code: def parse_quad(text):
      """
      Read in a file from the VI quad dataset
  
      The train file has a specific format:
      the doc has a 'data' section
      each block in the data is a separate document (138 in the train file, for example)
      each block has a 'paragraphs' section
      each paragrah has 'qas' and 'context'.  we care about the qas
      each piece of qas has 'question', which is what we actually want
      """
      doc = json.loads(text)
  
      questions = []
  
      for block in doc["data"]:
          paragraphs = block["paragraphs"]
          for paragraph in paragraphs:
              qas = paragraph["qas"]
              for question in qas:
                  questions.append(question["question"])
  
      return questions
  
file_path: stanza/stanza/utils/datasets/constituency/selftrain_vi_quad.py
imports: import argparse
  import json
  import logging
  import stanza
  from stanza.utils.datasets.constituency import selftrain
label_desc: Use image node_id 2 for calling a global function with example usage: parse_quad(text) and returns: questions