code: def build(opt, sample: bool = False):
      dpath = os.path.join(opt["datapath"], DATASET_NAME_LOCAL)
      if sample:
          dpath = f"{dpath}_sample"
      version = "v1.0"
  
      if not build_data.built(dpath, version_string=version):
          print("[building data: " + dpath + "]")
          if build_data.built(dpath):
              # An older version exists, so remove these outdated files.
              build_data.remove_dir(dpath)
              logging.info("Removed the existing data (old version).")
          build_data.make_dir(dpath)
          _download_with_cloud_storage_client(dpath, sample)
          _untar_dataset_files(dpath)
          _move_valid_files_from_dev_to_valid(dpath)
          build_data.mark_done(dpath, version_string=version)
  
file_path: ParlAI/parlai/tasks/natural_questions/build.py
imports: import os
  from tqdm import tqdm
  import parlai.core.build_data
  import parlai.utils.logging
label_desc: Use image node_id 6 for calling a global function with example usage: build(opt, sample) without return types