code: def test_kernel_pca_raise_not_fitted_error():
      X = np.random.randn(15).reshape(5, 3)
      kpca = KernelPCA()
      kpca.fit(X)
      with pytest.raises(NotFittedError):
          kpca.inverse_transform(X)
  
imports: import warnings
  import numpy
  import pytest
  import sklearn
  from sklearn.datasets import load_iris, make_blobs, make_circles
  from sklearn.decomposition import PCA, KernelPCA
  from sklearn.exceptions import NotFittedError
  from sklearn.linear_model import Perceptron
  from sklearn.metrics.pairwise import rbf_kernel
  from sklearn.model_selection import GridSearchCV
  from sklearn.pipeline import Pipeline
  from sklearn.preprocessing import StandardScaler
  from sklearn.utils._testing import assert_allclose, assert_array_almost_equal, assert_array_equal
  from sklearn.utils.fixes import CSR_CONTAINERS
  from sklearn.utils.validation import _check_psd_eigenvalues
label_desc: Use image node_id 19 for calling a global function with example usage: test_kernel_pca_raise_not_fitted_error() without return types