code: def is_control(char: str):
      """Checks whether `chars` is a control character."""
      # These are technically control characters but we count them as whitespace
      # characters.
      if char == "\t" or char == "\n" or char == "\r":
          return False
      cat = unicodedata.category(char)
      if cat.startswith("C"):
          return True
      return False
  
file_path: PaddleHub/paddlehub/text/utils.py
imports: import unicodedata
  from collections import OrderedDict
label_desc: Use image node_id 4 for calling a global function with example usage: is_control(char) and returns: False, False, True