code: def collapse_whitespace(text):
      """Replaces whitespace by " " in the text"""
      return re.sub(_whitespace_re, " ", text)
  
file_path: speechbrain/speechbrain/utils/text_to_sequence.py
imports: import re
  import logging
label_desc: Use image node_id 3 for calling a global function with example usage: collapse_whitespace(text) and returns: re