def StripOffsets_hook(ifdentry):

    if ifdentry.tag_name=='StripOffsets':
        ifd = ifdentry.ifd
        counts = ifd.get('StripByteCounts')
        if ifdentry.offset is not None:
            for i, (count, offset) in enumerate(zip(counts.value, ifdentry.value)):
                ifdentry.memory_usage.append((offset, offset+count, (i) % 'strip %s'))
        else:
            offset = ifdentry.value
            ifdentry.memory_usage.append((offset, offset+counts.value, 'strip'))

# todo: TileOffsets_hook
dataset/ETHPy150Open pearu/pylibtiff/libtiff/tiff_file.py/StripOffsets_hook/swapped operands of `%`