code: def _is_punctuation(char: str) -> bool:
      """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.
      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: import collections
  import io
  import pickle
  import unicodedata
  from typing import List, Union
label_desc: Use image node_id 9 for calling a global function with example usage: _is_punctuation(char) and returns: False, True, True