code: def download_gui(destignation, version):
      if isinstance(destignation, str):
          destignation = Path(destignation)
      dist_zip_path = str(destignation.joinpath("dist.zip"))
      bucket = "https://mindsdb-web-builds.s3.amazonaws.com/"
  
      resources = [
          {
              "url": bucket + "dist-V" + version + ".zip",
              "path": dist_zip_path,
          }
      ]
  
      def get_resources(resource):
          response = requests.get(resource["url"])
          if response.status_code != requests.status_codes.codes.ok:
              raise Exception(
                  f"Error {response.status_code} GET {resource['url']}"
              )
          open(resource["path"], "wb").write(response.content)
  
      try:
          for r in resources:
              get_resources(r)
      except Exception as e:
          logger.error(f"Error during downloading files from s3: {e}")
          return False
  
      static_folder = destignation
      static_folder.mkdir(mode=0o777, exist_ok=True, parents=True)
      ZipFile(dist_zip_path).extractall(static_folder)
  
      if static_folder.joinpath("dist").is_dir():
          shutil.move(
              str(destignation.joinpath("dist").joinpath("index.html")),
              static_folder,
          )
          shutil.move(
              str(destignation.joinpath("dist").joinpath("assets")),
              static_folder,
          )
          shutil.rmtree(destignation.joinpath("dist"))
  
      os.remove(dist_zip_path)
  
      version_txt_path = destignation.joinpath("version.txt")
      with open(version_txt_path, "wt") as f:
          f.write(version)
  
      return True
  
      """
      # to make downloading faster download each resource in a separate thread
      with concurrent.futures.ThreadPoolExecutor(max_workers=5) as executor:
          future_to_url = {executor.submit(get_resources, r): r for r in resources}
          for future in concurrent.futures.as_completed(future_to_url):
              res = future.result()
              if res is not None:
                  raise res
      """
  
file_path: mindsdb/mindsdb/api/http/gui.py
imports: import os
  import shutil
  import tempfile
  from pathlib import Path
  from zipfile import ZipFile
  import requests
  from mindsdb.utilities.config import Config
  from mindsdb.utilities import log
label_desc: Use image node_id 1 for calling a global function with example usage: download_gui(destignation, version) and returns: True, False