code: def _AlignUncompressedDataOffset(self, uncompressed_data_offset):
      
      if self._zip_ext_file:
        self._zip_ext_file.close()
        self._zip_ext_file = None
  
      try:
        # The open can fail if the file path in the local file header
        # does not use the same path segment separator as the corresponding
        # entry in the central directory.
        self._zip_ext_file = self._zip_file.open(self._zip_info, 'r')
      except zipfile.BadZipfile as exception:
        raise IOError(
            'Unable to open ZIP file with error: {0!s}'.format(exception))
  
      self._uncompressed_data = b''
      self._uncompressed_data_size = 0
      self._uncompressed_data_offset = 0
  
      while uncompressed_data_offset > 0:
        self._ReadCompressedData(self._UNCOMPRESSED_DATA_BUFFER_SIZE)
  
        if uncompressed_data_offset < self._uncompressed_data_size:
          self._uncompressed_data_offset = uncompressed_data_offset
          break
  
        uncompressed_data_offset -= self._uncompressed_data_size
docs: Aligns the compressed file with the uncompressed data offset.
  
      Args:
        uncompressed_data_offset (int): uncompressed data offset.
  
      Raises:
        IOError: if the ZIP file could not be opened.
        OSError: if the ZIP file could not be opened.