code: def test_ignore_dos_text():
      ImageFile.LOAD_TRUNCATED_IMAGES = True
  
      try:
          im = Image.open(TEST_FILE)
          im.load()
      finally:
          ImageFile.LOAD_TRUNCATED_IMAGES = False
  
      for s in im.text.values():
          assert len(s) < 1024 * 1024, "Text chunk larger than 1M"
  
      for s in im.info.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 1 for calling a global function with example usage: test_ignore_dos_text() without return types