code: def verify(self, endchunk=b"IEND"):
      # Simple approach; just calculate checksum for all remaining
      # blocks.  Must be called directly after open.
  
      cids = []
  
      while True:
          try:
              cid, pos, length = self.read()
          except struct.error:
              raise IOError("truncated PNG file")
  
          if cid == endchunk:
              break
          self.crc(cid, ImageFile._safe_read(self.fp, length))
          cids.append(cid)
  
      return cids
  
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 10 for calling the ChunkStream obj's underlying member method code with example usage: obj.verify(endchunk) and returns: cids