code: def check_text_memory(self, chunklen):
      self.text_memory += chunklen
      if self.text_memory > MAX_TEXT_MEMORY:
          raise ValueError(
              "Too much memory used in text chunks: %s>MAX_TEXT_MEMORY"
              % self.text_memory
          )
  
imports: import logging
  import re
  import struct
  import zlib
  from .None import Image, ImageFile, ImagePalette
  from ._binary import i8, i16be, i32be, o16be, o32be
  from ._util import py3
label_desc: Use image node_id 2 for calling the PngStream obj's underlying member method code with example usage: obj.check_text_memory(chunklen) without return types