code: def _after_jpeg_open(self, mpheader=None):
      self.mpinfo = mpheader if mpheader is not None else self._getmp()
      self.__framecount = self.mpinfo[0xB001]
      self.__mpoffsets = [
          mpent["DataOffset"] + self.info["mpoffset"]
          for mpent in self.mpinfo[0xB002]
      ]
      self.__mpoffsets[0] = 0
      # Note that the following assertion will only be invalid if something
      # gets broken within JpegImagePlugin.
      assert self.__framecount == len(self.__mpoffsets)
      del self.info["mpoffset"]  # no longer needed
      self.__fp = self.fp  # FIXME: hack
      self.__fp.seek(
          self.__mpoffsets[0]
      )  # get ready to read first frame
      self.__frame = 0
      self.offset = 0
      # for now we can only handle reading and individual frame extraction
      self.readonly = 1
  
file_path: catboost/contrib/python/Pillow/py2/PIL/MpoImagePlugin.py
imports: from .None import Image, ImageFile, JpegImagePlugin
  from ._binary import i16be
label_desc: Use image node_id 2 for calling the MpoImageFile obj's underlying member method code with example usage: obj._after_jpeg_open(mpheader) without return types