code: def seek(self, frame):
      if not self._seek_check(frame):
          return
      self.fp = self.__fp
      self.offset = self.__mpoffsets[frame]
  
      self.fp.seek(self.offset + 2)  # skip SOI marker
      segment = self.fp.read(2)
      if not segment:
          raise ValueError("No data found for frame")
      if i16(segment) == 0xFFE1:  # APP1
          n = i16(self.fp.read(2)) - 2
          self.info["exif"] = ImageFile._safe_read(self.fp, n)
  
          mptype = self.mpinfo[0xB002][frame]["Attribute"]["MPType"]
          if mptype.startswith("Large Thumbnail"):
              exif = self.getexif().get_ifd(0x8769)
              if 40962 in exif and 40963 in exif:
                  self._size = (exif[40962], exif[40963])
      elif "exif" in self.info:
          del self.info["exif"]
  
      self.tile = [
          ("jpeg", (0, 0) + self.size, self.offset, (self.mode, ""))
      ]
      self.__frame = frame
  
file_path: pillow-simd/src/PIL/MpoImagePlugin.py
imports: from .None import Image, ImageFile, JpegImagePlugin
  from ._binary import i16be
label_desc: Use image node_id 4 for calling the MpoImageFile obj's underlying member method code with example usage: obj.seek(frame) without return types