code: def test_dos_text():
      try:
          im = Image.open(TEST_FILE)
          im.load()
      except ValueError as msg:
          assert msg, "Decompressed Data Too Large"
          return
  
      for s in im.text.values():
          assert len(s) < 1024 * 1024, "Text chunk larger than 1M"
  
imports: import zlib
  from io import BytesIO
  from PIL import Image, ImageFile, PngImagePlugin
label_desc: Use image node_id 2 for calling a global function with example usage: test_dos_text() without return types