code: def is_punctuation(char):
      """Checks whether `chars` is a punctuation character.
      We treat all non-letter/number ASCII as punctuation. Characters such as "^", "$", and "`" are not in the Unicode.
      Punctuation class but we treat them as punctuation anyways, for consistency.
      """
      cp = ord(char)
      if (
          (cp >= 33 and cp <= 47)
          or (cp >= 58 and cp <= 64)
          or (cp >= 91 and cp <= 96)
          or (cp >= 123 and cp <= 126)
      ):
          return True
      cat = unicodedata.category(char)
      if cat.startswith("P"):
          return True
      return False
  
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 3 for calling a global function with example usage: is_punctuation(char) and returns: False, True, True