code: def is_punctuation(char):
      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
  
file_path: H2O/h2o_flexgen/benchmark/third_party/transformers/examples/research_projects/luke/luke_utils.py
imports: import unicodedata
  from dataclasses import dataclass
  from typing import Optional, Union
  import numpy
  from transformers.data.data_collator import DataCollatorMixin
  from transformers.file_utils import PaddingStrategy
  from transformers.tokenization_utils_base import PreTrainedTokenizerBase
label_desc: Use image node_id 2 for calling a global function with example usage: is_punctuation(char) and returns: False, True, True