code: def _clean_text(text):
      output = []
      for char in text:
          if not (
              (cp := ord(char)) == 0
              or cp == 0xFFFD
              or _is_control(char)
          ):
              output.append(" " if _is_whitespace(char) else char)
      return "".join(output)
  
file_path: tinygrad/examples/mlperf/helpers.py
imports: from collections import OrderedDict
  import unicodedata
  import numpy
  from scipy import signal
label_desc: Use image node_id 10 for calling a global function with example usage: _clean_text(text) and returns: str