code: def clean_text(text):
      """Remove new lines and multiple spaces and adjust end of sentence dot."""
  
      text = text.replace("\n", " ")
      text = re.sub(r"\s+", " ", text)
      for _ in range(3):
          text = text.replace(" . ", ". ")
  
      return text
  
imports: import re
  import numpy
label_desc: Use image node_id 1 for calling a global function with example usage: clean_text(text) and returns: text