class_docstr: Converts the given node and parents (recursively) to a text representation.
  
  The text representation should be similar to the XML format:
  
  <FilterElementsNode>
    ...
  </>
docstr: Converts the dag starting from the given root node to a text representation.
  
  The text representation is similar to XML.
docstr_tok: ["Converts","the","dag","starting","from","the","given","root","node","to","a","text","representation",".","The","text","representation","is","similar","to","XML","."]
code: def to_text(self, root_node: DagNode) -> str:
      """Converts the dag starting from the given root node to a text representation.
  
      The text representation is similar to XML.
      """
      return root_node.accept_dag_node_visitor(self)
  
file_path: metricflow/metricflow/dag/dag_to_text.py
imports: from __future__ import annotations
  import logging
  import textwrap
  from typing import TypeVar
  import jinja2
  from dbt_semantic_interfaces.pretty_print import pformat_big_objects
  from metricflow.dag.mf_dag import DagNode, DagNodeVisitor, MetricFlowDag
label_desc: Use image node_id 3 for calling the MetricFlowDagToText obj's underlying member method code with example usage: obj.to_text(root_node) and returns: root_node