code: def is_whitespace(char: str):
      """Checks whether `chars` is a whitespace character."""
      # \t, \n, and \r are technically contorl characters but we treat them
      # as whitespace since they are generally considered as such.
      if char == " " or char == "\t" or char == "\n" or char == "\r":
          return True
      cat = unicodedata.category(char)
      if cat == "Zs":
          return True
      return False
  
file_path: PaddleHub/paddlehub/text/utils.py
imports: import unicodedata
  from collections import OrderedDict
label_desc: Use image node_id 3 for calling a global function with example usage: is_whitespace(char) and returns: False, True, True