code: def cleanSource(source):
      # remove whitespace at end of lines
      source = re.sub(r"[\t ]+\n", "\n", source)
      # remove comments like .. Scalar Arguments ..
      source = re.sub(r"(?m)^[\t ]*/\* *\.\. .*?\n", "", source)
      # collapse blanks of more than two in-a-row to two
      source = re.sub(r"\n\n\n\n+", r"\n\n\n", source)
      return source
  
imports: import os
  import re
  import sys
  from plex import Scanner, Str, Lexicon, Opt, Bol, State, AnyChar, TEXT, IGNORE
  from plex.traditional import re
label_desc: Use image node_id 4 for calling a global function with example usage: cleanSource(source) and returns: source