code: def update_static(gui_version_lv):
      """Update Scout files basing on compatible-config.json content.
      Files will be downloaded and updated if new version of GUI > current.
      Current GUI version stored in static/version.txt.
      """
      config = Config()
      static_path = Path(config["paths"]["static"])
  
      logger.info(
          f"New version of GUI available ({gui_version_lv.vstring}). Downloading..."
      )
  
      temp_dir = tempfile.mkdtemp(prefix="mindsdb_gui_files_")
      success = download_gui(temp_dir, gui_version_lv.vstring)
      if success is False:
          shutil.rmtree(temp_dir)
          return False
  
      temp_dir_for_rm = tempfile.mkdtemp(prefix="mindsdb_gui_files_")
      shutil.rmtree(temp_dir_for_rm)
      shutil.copytree(str(static_path), temp_dir_for_rm)
      shutil.rmtree(str(static_path))
      shutil.copytree(temp_dir, str(static_path))
      shutil.rmtree(temp_dir_for_rm)
  
      logger.info(f"GUI version updated to {gui_version_lv.vstring}")
      return True
  
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 2 for calling a global function with example usage: update_static(gui_version_lv) and returns: True, False