code: def _is_start_of_word(text):
      """Checks whether the first character in text is one of a punctuation, control or whitespace character."""
      first_char = text[0]
      return bool(
          _is_control(first_char)
          | _is_punctuation(first_char)
          | _is_whitespace(first_char)
      )
  
imports: import bisect
  import itertools
  import re
  import unicodedata
  from collections import OrderedDict
  from typing import Any, Dict, List, Optional, Tuple, Union, overload
  from .tokenization_utils_base import ENCODE_KWARGS_DOCSTRING, ENCODE_PLUS_ADDITIONAL_KWARGS_DOCSTRING, INIT_TOKENIZER_DOCSTRING, AddedToken, BatchEncoding, EncodedInput, EncodedInputPair, PreTokenizedInput, PreTokenizedInputPair, PreTrainedTokenizerBase, TextInput, TextInputPair, TruncationStrategy
  from .utils import PaddingStrategy, TensorType, add_end_docstrings, logging
label_desc: Use image node_id 5 for calling a global function with example usage: _is_start_of_word(text) and returns: bool