def METHOD_NAME(self):
    hdu = fits.CompImageHDU(np.ones((10, 10)))
    hdu.data = None
    with pytest.raises(TypeError) as exc:
        compress_image_data(
            hdu.data, hdu.compression_type, hdu._header, hdu.columns
        )
    assert "Image data must be a numpy.ndarray" in str(exc.value)