class_docstr: A token group (substring) representation used for token clustering.
      
code: def __init__(self, group, index=None):
      self.g = group
      self.index = index
  
imports: import math
  import re
  import numpy
  from .._serializable import Deserializer, Serializer
  from ..utils import safe_isinstance
  from ..utils.transformers import SENTENCEPIECE_TOKENIZERS, getattr_silent, parse_prefix_suffix_for_tokenizer
  from ._masker import Masker
label_desc: Use image node_id 1 to create a new TokenGroup object  with example: obj = TokenGroup(group, index)