code: def download(opt):
      version = "v0.1"
      # download all of the currently available jsons
      dpath = os.path.join(
          opt["datapath"], "light_dialogue_wild", "dumps"
      )
      if not build_data.built(dpath, version):
          print("[building data: " + dpath + "]")
          if build_data.built(dpath):
              # An older version exists, so remove these outdated files.
              build_data.remove_dir(dpath)
          build_data.make_dir(dpath)
  
          # Download the manifest.
          for downloadable_file in RESOURCES:
              downloadable_file.download_file(dpath)
  
          # Read the manifest
          with open(
              os.path.join(dpath, "current_chats.txt"), "r"
          ) as manifest:
              additional_files = manifest.readlines()
  
          # Download the files listed in the manifest
          more_resources = []
          for sha_and_filename in additional_files:
              file_hash, filename = sha_and_filename.strip().split("  ")
              more_resources.append(
                  DownloadableFile(
                      f"http://parl.ai/downloads/light_project/wild_chats/{filename}",
                      filename,
                      file_hash,
                      zipped=False,
                  )
              )
  
          for downloadable_file in more_resources:
              downloadable_file.download_file(dpath)
  
          # Mark the data as built.
          build_data.mark_done(dpath, version)
  
      return dpath, version
  
imports: import parlai.core.build_data
  import os
  from hashlib import sha1
  from parlai.tasks.light_dialog_wild.builder import build_from_dump
  from parlai.core.build_data import DownloadableFile
label_desc: Use image node_id 1 for calling a global function with example usage: download(opt) and returns: dpath,  version