code: def svg_renderer(spec: dict, **metadata) -> Dict[str, str]:
      # To get proper return value type, would need to write complex
      # overload signatures for spec_to_mimebundle based on `format`
      return spec_to_mimebundle(  # type: ignore[return-value]
          spec,
          format="svg",
          mode="vega-lite",
          vega_version=VEGA_VERSION,
          vegaembed_version=VEGAEMBED_VERSION,
          vegalite_version=VEGALITE_VERSION,
          **metadata,
      )
  
file_path: altair/altair/vegalite/v5/display.py
imports: import os
  from typing import Dict
  from ...utils.mimebundle import spec_to_mimebundle
  from ..display import Displayable, default_renderer_base, json_renderer_base, RendererRegistry, HTMLRenderer, DefaultRendererReturnType
  from .schema import SCHEMA_VERSION
  from typing import Final
label_desc: Use image node_id 4 for calling a global function with example usage: svg_renderer(spec) and returns: spec_to_mimebundle