code: def squad_subsample():
      if not os.path.exists("samples/qa"):
          os.makedirs("samples/qa")
  
      with open("../data/squad20/dev-v2.0.json") as json_file:
          data = json.load(json_file)
  
      ss = data["data"][0]["paragraphs"][:1]
      sample = {}
      sample["data"] = [{"paragraphs": ss}]
      # just creating same train and dev files
      with open("samples/qa/dev-sample.json", "w") as outfile:
          json.dump(sample, outfile)
      with open("samples/qa/train-sample.json", "w") as outfile:
          json.dump(sample, outfile)
  
file_path: FARM/test/create_testdata.py
imports: import argparse
  import json
  import logging
  import os
  import pprint
label_desc: Use image node_id 1 for calling a global function with example usage: squad_subsample() without return types