code: def load_engine_specs() -> list[type[BaseEngineSpec]]:
      """
      Load all engine specs, native and 3rd party.
      """
      engine_specs: list[type[BaseEngineSpec]] = []
  
      # load standard engines
      db_engine_spec_dir = str(Path(__file__).parent)
      for module_info in pkgutil.iter_modules(
          [db_engine_spec_dir], prefix="."
      ):
          module = import_module(module_info.name, package=__name__)
          engine_specs.extend(
              getattr(module, attr)
              for attr in module.__dict__
              if is_engine_spec(getattr(module, attr))
          )
      # load additional engines from external modules
      for ep in entry_points(group="superset.db_engine_specs"):
          try:
              engine_spec = ep.load()
          except Exception:  # pylint: disable=broad-except
              logger.warning(
                  "Unable to load Superset DB engine spec: %s", ep.name
              )
              continue
          engine_specs.append(engine_spec)
  
      return engine_specs
  
file_path: superset/superset/db_engine_specs/__init__.py
imports: import inspect
  import logging
  import pkgutil
  from collections import defaultdict
  from importlib import import_module
  from pathlib import Path
  from typing import Any, Optional
  import sqlalchemy.dialects
  from importlib_metadata import entry_points
  from sqlalchemy.engine.default import DefaultDialect
  from sqlalchemy.exc import NoSuchModuleError
  from superset import app, feature_flag_manager
  from superset.db_engine_specs.base import BaseEngineSpec
label_desc: Use image node_id 2 for calling a global function with example usage: load_engine_specs() and returns: engine_specs