code: def download(datapath, version="v1.1"):
      # v1.0: initial release
      # v1.1: change the datatype in conversion for a lighter model file
      dpath = os.path.join(datapath, "models", "bart")
  
      if not build_data.built(dpath, version):
          print("[downloading BART models: " + 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 data.
          model_name = "bart.large"
          url = f"http://dl.fbaipublicfiles.com/fairseq/models/{model_name}.tar.gz"
          build_data.download(url, dpath, f"{model_name}.tar.gz")
          build_data.untar(dpath, f"{model_name}.tar.gz")
          args = CONVERSION_ARGS.copy()
          args["input"] = [os.path.join(dpath, model_name, "model.pt")]
          args["output"] = os.path.join(
              dpath, model_name.replace(".", "_"), "model"
          )
          ConversionScript.main(**args)
  
          # Mark the data as built.
          build_data.mark_done(dpath, version)
  
label_desc: Use image node_id 1 for calling a global function with example usage: download(datapath, version) without return types