code: def normalize_text(text):
      if text is None:
          return None
      text = str(text)
      text = re.sub(r"\s+", " ", text)
      return text.strip()
  
imports: import errno
  import re
  import sys
  import traceback
  import warnings
label_desc: Use image node_id 1 for calling a global function with example usage: normalize_text(text) and returns: text, None