code: def _clean(txt):
      """Replace sequences of multiple spaces with a single space, excluding newlines.
  
      Preserves leading and trailing spaces, and does not modify spaces in between lines.
      """
      return re.sub(" +", " ", txt)
  
file_path: streamlit/lib/streamlit/config_util.py
imports: import re
  from typing import Dict
  import click
  import toml
  from streamlit.config_option import ConfigOption
label_desc: Use image node_id 3 for calling a global function with example usage: _clean(txt) and returns: re