def METHOD_NAME(self):
    kwargs_data = {"image_data": np.zeros((10, 10))}
    Data = ImageData(**kwargs_data)
    image_data_new = np.zeros((5, 5))
    with self.assertRaises(ValueError):
        out = Data.update_data(image_data_new)
    with self.assertRaises(ValueError):
        ImageData(**kwargs_data, likelihood_method="WRONG")