code: def _open_webbrowser(
      url: str, pid: int, port: int, init_static_thread, static_folder
  ):
      """Open webbrowser with url when http service is started.
  
      If some error then do nothing.
      """
      if init_static_thread is not None:
          init_static_thread.join()
      inject_telemetry_to_static(static_folder)
      try:
          is_http_active = wait_func_is_true(
              func=is_pid_listen_port, timeout=15, pid=pid, port=port
          )
          if is_http_active:
              webbrowser.open(url)
      except Exception as e:
          logger.error(
              f"Failed to open {url} in webbrowser with exception {e}"
          )
          logger.error(traceback.format_exc())
      db.session.close()
  
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 8 for calling a global function with example usage: _open_webbrowser(url, pid, port, init_static_thread, static_folder) without return types