code: def _get_initial_indent(lines: Iterable[str]) -> int:
      """Return the indent of the first non-empty line in the list.
      If all lines are empty, return 0.
      """
      for line in lines:
          indent = _get_indent(line)
          if indent is not None:
              return indent
  
      return 0
  
file_path: streamlit/lib/streamlit/echo.py
imports: import ast
  import contextlib
  import re
  import textwrap
  import traceback
  from typing import Any, Dict, Iterable, Optional
  from streamlit.runtime.metrics_util import gather_metrics
label_desc: Use image node_id 2 for calling a global function with example usage: _get_initial_indent(lines) and returns: int, indent