code: def is_punct(text: str) -> bool:
      for char in text:
          if not unicodedata.category(char).startswith("P"):
              return False
      return True
  
imports: import re
  import unicodedata
  from typing import Set
  from ..None import attrs
  from .tokenizer_exceptions import URL_MATCH
label_desc: Use image node_id 1 for calling a global function with example usage: is_punct(text) and returns: True, False