code: def sql_query_plan_node_as_text(root_node: SqlQueryPlanNode) -> str:
      """Recursively convert the tree represented by the root node into a string."""
      return MetricFlowDagToText().to_text(root_node)
  
file_path: metricflow/metricflow/sql/sql_plan_to_text.py
imports: from __future__ import annotations
  import textwrap
  import jinja2
  from jinja2 import StrictUndefined
  from metricflow.dag.dag_to_text import MetricFlowDagToText
  from metricflow.sql.sql_plan import SqlQueryPlan, SqlQueryPlanNode
label_desc: Use image node_id 1 for calling a global function with example usage: sql_query_plan_node_as_text(root_node) and returns: MetricFlowDagToText