def METHOD_NAME(self, kw):
    hdu = fits.CompImageHDU(np.ones((10, 10)))
    hdu._header[kw] = MAX_INT + 1
    with pytest.raises(OverflowError):
        compress_image_data(
            hdu.data, hdu.compression_type, hdu._header, hdu.columns
        )