code: def import_sample_data(max_docs=2000):
      """This method downloads several datasets and builds an
      elasticsearch index using the downloaded data.
      Caselaw
  
      Args:
          max_docs (int, optional): [description]. Defaults to 2000.
      """
      caselaw_data_paths = [
          ["https://api.case.law/v1/bulk/22411/download/", "newmexico"]
      ]
      for data_path in caselaw_data_paths:
          file_path = download_data(data_path[0], data_path[1])
          create_index_from_json("cases", file_path, max_docs=max_docs)
  
file_path: neuralqa/neuralqa/utils/data_utils.py
imports: from elasticsearch import Elasticsearch
  import os
  import zipfile
  import shutil
  import urllib.request
  import logging
  import lzma
  import json
  import tarfile
  import hashlib
label_desc: Use image node_id 4 for calling a global function with example usage: import_sample_data(max_docs) without return types