code: def display_dag_as_svg(
      dag_graph: DagGraphT, directory_path: str
  ) -> str:
      """Create and display the plan as an SVG in the browser.
  
      Returns the path where the SVG file was created within "mf_config_dir".
      """
      svg_dir = os.path.join(directory_path, "generated_svg")
      random_file_path = os.path.join(svg_dir, f"dag_{random_id()}")
      render_via_graphviz(
          dag_graph=dag_graph,
          file_path_without_svg_suffix=random_file_path,
      )
      return random_file_path + ".svg"
  
file_path: metricflow/metricflow/dag/dag_visualization.py
imports: from __future__ import annotations
  import logging
  import os
  from typing import TypeVar
  import graphviz
  from metricflow.dag.mf_dag import DagNode, MetricFlowDag
  from metricflow.random_id import random_id
label_desc: Use image node_id 2 for calling a global function with example usage: display_dag_as_svg(dag_graph, directory_path) and returns: unknown