def METHOD_NAME(self):
    hdu = fits.CompImageHDU(np.ones((10, 10)))
    del hdu._header
    with pytest.raises(AttributeError) as exc:
        compress_image_data(
            hdu.data, hdu.compression_type, hdu._header, hdu.columns
        )
    assert "_header" in str(exc.value)