code: def _string_length_check(text):
      if (
          MAX_STRING_LENGTH is not None
          and len(text) > MAX_STRING_LENGTH
      ):
          msg = "too many characters in string"
          raise ValueError(msg)
  
imports: import base64
  import os
  import sys
  import warnings
  from enum import IntEnum
  from io import BytesIO
  from .None import Image
  from ._util import is_directory, is_path
label_desc: Use image node_id 1 for calling a global function with example usage: _string_length_check(text) without return types