code: def dataflow_dag_as_text(root_node: DataflowPlanNode) -> str:
      """Converts the dataflow dag starting from the given root node to a text representation.
  
      The text representation is similar to XML.
      """
      return MetricFlowDagToText().to_text(root_node)
  
file_path: metricflow/metricflow/dataflow/dataflow_plan_to_text.py
imports: from __future__ import annotations
  import logging
  import textwrap
  import jinja2
  from metricflow.dag.dag_to_text import MetricFlowDagToText
  from metricflow.dataflow.dataflow_plan import DataflowPlan, DataflowPlanNode
label_desc: Use image node_id 1 for calling a global function with example usage: dataflow_dag_as_text(root_node) and returns: MetricFlowDagToText