code: def get_name(spec: type[BaseEngineSpec]) -> str:
      """
      Return a name for a given DB engine spec.
      """
      return spec.engine_name or spec.engine
  
file_path: superset/superset/db_engine_specs/lib.py
imports: from __future__ import annotations
  from typing import Any
  from superset.constants import TimeGrain
  from superset.db_engine_specs import load_engine_specs
  from superset.db_engine_specs.base import BaseEngineSpec
label_desc: Use image node_id 3 for calling a global function with example usage: get_name(spec) and returns: unknown