code: def is_punctuation(char):
      """Checks whether `chars` is a punctuation character."""
      cp = ord(char)
      # 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.
      condition = (
          (33 <= cp <= 47)
          or (58 <= cp <= 64)
          or (91 <= cp <= 96)
          or (123 <= cp <= 126)
      )
      cat = unicodedata.category(char)
      if condition or cat.startswith("P"):
          return True
      return False
  
imports: import unicodedata
label_desc: Use image node_id 3 for calling a global function with example usage: is_punctuation(char) and returns: False, True