code: def clean_text(text):
      output = []
      for char in text:
          cp = ord(char)
          if cp == 0 or cp == 0xFFFD or is_control(char):
              continue
          if is_whitespace(char):
              output.append(" ")
          else:
              output.append(char)
      return "".join(output)
  
imports: from __future__ import absolute_import
  from __future__ import division
  from __future__ import print_function
  import collections
  import unicodedata
  import six
label_desc: Use image node_id 6 for calling a global function with example usage: clean_text(text) and returns: str