code: def get_current_gui_version() -> LooseVersion:
      logger.debug("Getting current frontend version..")
      config = Config()
      static_path = Path(config["paths"]["static"])
      version_txt_path = static_path.joinpath("version.txt")
  
      current_gui_version = None
      if version_txt_path.is_file():
          with open(version_txt_path, "rt") as f:
              current_gui_version = f.readline()
  
      current_gui_lv = (
          None
          if current_gui_version is None
          else LooseVersion(current_gui_version)
      )
      logger.debug(f"Current frontend version: {current_gui_lv}.")
  
      return current_gui_lv
  
imports: import datetime
  import mimetypes
  import os
  import secrets
  import threading
  import traceback
  import webbrowser
  from distutils.version import LooseVersion
  from pathlib import Path
  import requests
  from flask import Flask, url_for, make_response, request, send_from_directory
  from flask.json import dumps
  from flask_compress import Compress
  from flask_restx import Api
  from werkzeug.exceptions import HTTPException
  from mindsdb.__about__ import __version__
  from mindsdb.api.http.gui import update_static
  from mindsdb.api.http.utils import http_error
  from mindsdb.api.http.namespaces.agents import ns_conf
  from mindsdb.api.http.namespaces.analysis import ns_conf
  from mindsdb.api.http.namespaces.auth import ns_conf
  from mindsdb.api.http.namespaces.chatbots import ns_conf
  from mindsdb.api.http.namespaces.config import ns_conf
  from mindsdb.api.http.namespaces.databases import ns_conf
  from mindsdb.api.http.namespaces.default import ns_conf, check_auth
  from mindsdb.api.http.namespaces.file import ns_conf
  from mindsdb.api.http.namespaces.handlers import ns_conf
  from mindsdb.api.http.namespaces.models import ns_conf
  from mindsdb.api.http.namespaces.projects import ns_conf
  from mindsdb.api.http.namespaces.skills import ns_conf
  from mindsdb.api.http.namespaces.sql import ns_conf
  from mindsdb.api.http.namespaces.tab import ns_conf
  from mindsdb.api.http.namespaces.tree import ns_conf
  from mindsdb.api.http.namespaces.views import ns_conf
  from mindsdb.api.http.namespaces.util import ns_conf
  from mindsdb.interfaces.database.integrations import integration_controller
  from mindsdb.interfaces.database.database import DatabaseController
  from mindsdb.interfaces.file.file_controller import FileController
  from mindsdb.interfaces.storage import db
  from mindsdb.utilities import log
  from mindsdb.utilities.config import Config
  from mindsdb.utilities.context import context
  from mindsdb.utilities.json_encoder import CustomJSONEncoder
  from mindsdb.utilities.ps import is_pid_listen_port, wait_func_is_true
  from mindsdb.utilities.telemetry import inject_telemetry_to_static
label_desc: Use image node_id 3 for calling a global function with example usage: get_current_gui_version() and returns: current_gui_lv