code: def clean_whitespace(statement):
      """
      Remove any consecutive whitespace characters from the statement text.
      """
      import re
  
      # Replace linebreaks and tabs with spaces
      statement.text = (
          statement.text.replace("\n", " ")
          .replace("\r", " ")
          .replace("\t", " ")
      )
  
      # Remove any leeding or trailing whitespace
      statement.text = statement.text.strip()
  
      # Remove consecutive spaces
      statement.text = re.sub(" +", " ", statement.text)
  
      return statement
  
label_desc: Use image node_id 1 for calling a global function with example usage: clean_whitespace(statement) and returns: statement