code: def word_shape(text: str) -> str:
      if len(text) >= 100:
          return "LONG"
      shape = []
      last = ""
      shape_char = ""
      seq = 0
      for char in text:
          if char.isalpha():
              if char.isupper():
                  shape_char = "X"
              else:
                  shape_char = "x"
          elif char.isdigit():
              shape_char = "d"
          else:
              shape_char = char
          if shape_char == last:
              seq += 1
          else:
              seq = 0
              last = shape_char
          if seq < 4:
              shape.append(shape_char)
      return "".join(shape)
  
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 11 for calling a global function with example usage: word_shape(text) and returns: str, str